Posted: Thu Jul 31, 2014 11:36 pm Post subject: Select query table name from a variable
Acolyte
Joined: 30 May 2011 Posts: 56 Location: India
I'm trying to give table name in a variable and later trying to pick table name from that variable in my select query. But this is not working. Any suggestions???
set TABLE = 'TEST'
SET value=(SELECT MAX (Z.DATE_STEHT) FROM Database.TABLE AS Z
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum