Skip to content

Instantly share code, notes, and snippets.

@phpleo
Created January 10, 2011 16:57
Show Gist options
  • Select an option

  • Save phpleo/773040 to your computer and use it in GitHub Desktop.

Select an option

Save phpleo/773040 to your computer and use it in GitHub Desktop.
tsql: actualizar registro con condicional (UPDATE CASE WHEN)
UPDATE Proyecto.Proyecto
SET Estado = CASE WHEN EnEjecucion = '1' THEN 'e' ELSE NULL END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment