sql update - How to add additional Value in MySQL DB -


how can add 1 value field in table?

i update field below mysql, update value.

update table set value= 3 id= 1 

so here actual want do:

before add value

+--------------+ | table        | +--------------+ | id   | value | +--------------+ | 1    | 1     | +--------------+ | 2    | 2     | +--------------+ 

after add value

+-------------------+ | table             | +-------------------+ | id   | value      | +-------------------+ | 1    | 1 , 3      | +-------------------+ | 2    | 2          | +-------------------+ 

it seems using integer field 'value' column, can't store more 1 number in 1 integer field, might it's set both 'id' , 'value' columns primary keys able insert more 1 value same id. if that's not want, consider using 'set' type. more info https://dev.mysql.com/doc/refman/5.0/en/set.html


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -