How to Create a table in SQL with a table name depending on the date the code is run ?

For e.g. Create table tempOCT as Select....
If i run the code in any day of Nov the table name should be tempNOV.

Showing Answers 1 - 6 of 6 Answers

vishal gupta

  • Nov 21st, 2007
 

You can do one this in the code itself that is going to create the table at run time incorporate the logic to get the currect date, take it as string variable and then in the code itself you can write the query Create table as(..)

Might help you.

Vishal.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions