Click here to Skip to main content
16,016,460 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have to update a column with 'y' if the bit passed is true and with empty if the bit passed is false


can i use two update query will it work?

please help
Posted
Comments
Maciej Los 9-Apr-13 5:08am    
What have you done till now?
Share your code...
kiran pericherla 9-Apr-13 5:14am    
can you tell me little bit briefly
Maciej Los 9-Apr-13 5:23am    
Yes, i can, but what?

1 solution

Something like
update table set flag = (select case when bit = true then 'Y' else 'N')
 
Share this answer
 
Comments
Maciej Los 9-Apr-13 5:36am    
+5
Abhinav S 9-Apr-13 14:33pm    
Thank you.

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