Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DB2 equivalent of Transact SQL Stmts?

Status
Not open for further replies.

attick111

Programmer
Nov 28, 2001
21
US
Does anyone know the DB2 equivalent of the following Sybase T-SQL statement

@numb int
select @numb=67

select @numb = @numb + 1
OR
select * from mytable where code_num > 67
 
Last stmt should read

select * from mytable where code_num > @numb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top