Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi here is the basic command
UPDATE UserProfile SET Group='3' WHERE UserId='15';
but group is a reserved word so doesnt work, I find that I should use
`
above group but also doesnt works. How can I solve this ? :)
Posted
Comments
Sudhakar Shinde 6-Aug-13 11:54am    
which database you are using??

Try:
SQL
UPDATE UserProfile SET [Group]='3' WHERE UserId='15';
 
Share this answer
 
If you are using MS SQL Server/MS Access write :
SQL
...set [Group] = ...

If you are using MySql write :
SQL
...set `Group` = ...

If you are using Sqlite write :
SQL
...set "Group" = ...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900