Click here to Skip to main content
   

Database

 
QuestionSQL Server 2008 PinmemberVishwaKL10-Feb-13 18:51 
AnswerRe: SQL Server 2008 PinmemberShameel10-Feb-13 23:33 
AnswerRe: SQL Server 2008 Pinmemberjschell11-Feb-13 9:20 
Questionupdate values in a table in single query Pinmembernainakarri7-Feb-13 21:07 
AnswerRe: update values in a table in single query PinmemberMycroft Holmes7-Feb-13 22:00 
GeneralRe: update values in a table in single query PinmemberShameel10-Feb-13 23:38 
GeneralRe: update values in a table in single query PinmemberMycroft Holmes11-Feb-13 14:30 
AnswerRe: update values in a table in single query PinmvpEddy Vluggen7-Feb-13 23:42 
BEGIN TRANSACTION
 
CREATE TABLE Person
(
    Name VARCHAR(MAX)
   ,Gender CHAR(1)
)
INSERT INTO Person VALUES
  ('Pete', 'M')
 ,('John', 'M')
 ,('Mary', 'F')
 ,('Dude', 'M')
 ,('Mary', 'F')
 
 SELECT *
   FROM Person
   
 UPDATE Person
    SET Gender = CASE Gender WHEN 'M' THEN 'F'
                                      ELSE 'M'
                                      END
                                    
 SELECT *
   FROM Person
   
ROLLBACK 
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: update values in a table in single query Pinmembergvprabu10-Feb-13 19:02 
AnswerRe: update values in a table in single query Pinmembergvprabu20-Feb-13 22:43 
QuestionIs it possible to print a variable in stored procedure PinmemberDeepthi.214567-Feb-13 20:45 
AnswerRe: Is it possible to print a variable in stored procedure Pinmembernainakarri7-Feb-13 21:22 
GeneralRe: Is it possible to print a variable in stored procedure Pinmembervanikanc12-Feb-13 9:19 
QuestionVisual Studio 2005 Access 2010 Database PinmemberMember 98194707-Feb-13 13:06 
AnswerRe: Visual Studio 2005 Access 2010 Database PinmemberMycroft Holmes7-Feb-13 14:45 
QuestionSimulate transaction: non blocking insert / update PinmemberBob Stanneveld7-Feb-13 12:12 
AnswerRe: Simulate transaction: non blocking insert / update PinmemberMycroft Holmes7-Feb-13 14:44 
QuestionPropagating a MySQL transaction with MSMQ II PinmemberGer Hayden6-Feb-13 9:08 
QuestionMissing Data in an Access Report PinmemberVuyiswa Maseko6-Feb-13 4:03 
AnswerRe: Missing Data in an Access Report Pinmemberjschell6-Feb-13 9:11 
GeneralRe: Missing Data in an Access Report PinmemberVuyiswa Maseko6-Feb-13 20:01 
GeneralRe: Missing Data in an Access Report Pinmemberjschell7-Feb-13 10:52 
AnswerRe: Missing Data in an Access Report PinmemberMycroft Holmes6-Feb-13 13:27 
GeneralRe: Missing Data in an Access Report PinmemberVuyiswa Maseko6-Feb-13 20:06 
GeneralRe: Missing Data in an Access Report PinmemberMycroft Holmes6-Feb-13 21:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 27 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid