Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
My query is

SQL
UPDATE EMPLOYEE_MASTER SET ADDRESS='anyone',CITY= 'anyone',STATE= 'Andaman and Nicobar (UT)',ZIPCODE= '123456' WHERE LOGIN_NAME='xyz'


now problem is when STATE='Andaman and Nicobar (UT)' it can not execute,
but when STATE='Andaman Nicobar (UT)' it can execute...
Here how can i update as STATE='Andaman and Nicobar (UT)'
Posted
Updated 21-Dec-11 18:48pm
v2
Comments
uspatel 22-Dec-11 1:01am    
any error message?

What error you are getting?
First check your column length of State field. IMO its less than 20 and you are passing value that's length is 24.
 
Share this answer
 
Comments
thatraja 22-Dec-11 0:52am    
Possible case, 5!
jasmin_patel 22-Dec-11 1:00am    
thanks it's right..
my columns length is 20.

thank you once again.
member60 22-Dec-11 1:02am    
My 5!
check your column length of state column this should increase
your query is ok
 
Share this answer
 
Check your column size.
Your query is right.
 
Share this answer
 
There is no problem in your query..

Just check the length of column..
 
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