Search Results

Showing results 1 to 2 of 2
Search took 0.01 seconds.
Search: Posts Made By: MCP
Forum: MS SQL Nov 16th, 2006
Replies: 4
Views: 2,426
Posted By MCP
Well, the bad way would be to do something like:

select case color when 0 then 'black' when 1 then 'white' when 2 then 'red' when 4 then 'blue' end as color from myTable

ideally, you would...
Forum: MS SQL Nov 16th, 2006
Replies: 1
Views: 10,081
Posted By MCP
I don't have my sql server readily available, but you could use the "create trigger" command, then use the logical tables "inserted" and "deleted" (which represent what is and what was, respectively)...
Showing results 1 to 2 of 2

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC