I have database table which contains two columns "url" of type varchar and "www" of type tinyint which contains 1, if url was specified with www prefix, and 0, if not.
I want create a column in mysql view called full url which would contain following equivalent of c++ code:
full_url = "http://" + (www == 1 ? "www." : "") + url;
Can you help me?