Advertisement
Plim

Untitled

Oct 24th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.21 KB | None | 0 0
  1. DECLARE @theCountry VARCHAR(7)
  2. SET @theCountry = 'Caca'
  3. INSERT INTO TABLE VALUES (
  4. '0000',(
  5. CASE
  6.     WHEN (@theCountry = 'Spain') THEN 'ES'
  7.     WHEN (@theCountry = 'Caca') THEN 'KK'
  8. END)
  9. ,'00000000','',''
  10. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement