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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with column USER

Status
Not open for further replies.

Morke275

Technical User
Jun 14, 2005
2
SE
Hi!
I created a database using a key column called USER which is giving me a lot of problems. I cant select anything using that column (neither "... where USER='bla'" or "... where USER like 'bla'"). All other columns works fine. Any ideas what the problem can be?
 
Morke275,

I think USER is a reserved word. I tried running the following query, which effectively returned the User-ID I'm logged on as, DB2USER1.

db2 select user from sysibm.sysdummy1

1
--------------------------------------------------------------------------------------------------------------------------------
DB2USER1

1 record(s) selected.

Cheers
Greg
 
OK, I started to suspect just that. Thanks a lot!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top