Re: invert tinyint column
From: Vishal Parkar (REMOVE_THIS_vgparkar_at_yahoo.co.in)
Date: 10/08/04
- Next message: Jacco Schalkwijk: "Re: Change Server default language"
- Previous message: Jacco Schalkwijk: "Re: invert tinyint column"
- In reply to: John: "invert tinyint column"
- Next in thread: Mal .mullerjannie_at_hotmail.com>: "RE: invert tinyint column"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 8 Oct 2004 19:33:47 +0530
try following sequence of update statements:
begin transaction
update <table> set col_1 = 2
where col_1 = 1
update <table> set col_1 = 1
where col_1 = 0
update <table> set col_1 = 0
where col_1 = 2
--check the data and issue commit/rollback accordingly.
-- Vishal Parkar vgparkar@yahoo.co.in | vgparkar@hotmail.com
- Next message: Jacco Schalkwijk: "Re: Change Server default language"
- Previous message: Jacco Schalkwijk: "Re: invert tinyint column"
- In reply to: John: "invert tinyint column"
- Next in thread: Mal .mullerjannie_at_hotmail.com>: "RE: invert tinyint column"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|