Symptom
- Temporary tables return the NULL value in a subsequent SELECT, for example:
create table #t1 (ticket char(8))
insert into #t1 values ('testvalue')
select * from #t1
returns:
ticket
--------
testvalue
declare @ticket CHAR(8)
select @ticket = ticket from #t1
select @ticket
returns:
--------
testvalue
drop table #t1
create table #t1 (ticket char(8))
insert into #t1 values ('testvalue')
declare @ticket CHAR(8)
select @ticket = ticket from #t1
select @ticket
returns:
--------
NULL
- This occurs only when the value from the column is assigned to a SQL variable.
Read more...
Environment
- SAP Adaptive Server Enterprise (ASE) 15.0.3
- SAP Adaptive Server Enterprise (ASE) 15.5
- SAP Adaptive Server Enterprise (ASE) 15.7
Product
Keywords
686209, CR686209, statement cache , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Bug Filed
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.