Best way to add a column in mysql query

Posted by PHP-Prabhu on Stack Overflow See other posts from Stack Overflow or by PHP-Prabhu
Published on 2010-05-14T11:15:52Z Indexed on 2010/05/14 11:54 UTC
Read the original article Hit count: 264

Filed under:
|

Can any one please let me know that, I need to add a column dynamically when executing mysql query

Table: Table1
--------------------------
col1      col2       col3
--------------------------
Test      OK       Test3
Test      OK       Test5
Test      OK       Test6

from the above example i need to introduce "col2" as new column and its value to be as "OK"

© Stack Overflow or respective owner

Related posts about mysql

Related posts about query