Home
Submit
Free Hosting
Link To Us
Contacts
SQL Update in place
SQL
Download
(.zip)
USE pubs
GO
if exists (SELECT * FROM sysobjects where name='T1' and type='U')
DROP TABLE T1
GO
CREATE TABLE T1(X int primary key, Y int)
INSERT T1 VALUES(1, 10)
INSERT T1 VALUES(2, 20)
GO
UPDATE T1 SET X = 3 - X
GO
SQL
Cursor grant update permission
Cursor vs join
Decode sysconstraints
SQL
Diff intervals
Error checking in proc
Error checking in xact
SQL
Forward pointers
Full Outer JOIN old-style vs ANSI
Full Outer JOIN
SQL
Instead of DELETE trg on VIEW
Instead of INSTEAD trg on UNION VIEW
JOINs with dummy rows
SQL
Multiple contraints
Multiple contraints2
Old style outer joins