Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

how to declare a variable similar to table column type?

$
0
0

hi all,

currently, i declare variable in stored procedure similar to db table column. is it a way to declare it like below:

x_order_noso.order_no%type;

i need to do it so that i dont need to change the store procedure when change the size of the table in db.

thanks for any inputs.

regards,

Richard


Viewing all articles
Browse latest Browse all 23857

Trending Articles