Quantcast
Channel: SCN : All Content - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 757

Sybase 16 and @table vars

$
0
0

We're having a look at Sybase 16 and the @table variables

 

This doesn't seem right to me

 

declare @a_table_var table( colA int, colB varchar(5), colC numeric(10,2) null )

 

insert @a_table_var (colA,colB,colC)   values( 1, 'OK', 945.32 )

insert @a_table_var (colA,colB)        values( 2, 'WRONG' )

insert @a_table_var (colA,colB,colC)   values( 3, 'OK', null )

 

select * from @a_table_var


colA     colB     colC   

-------  ------- -------

1        OK       945.32 

2        WRONG    945.32

3        OK       (null) 




Viewing all articles
Browse latest Browse all 757

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>