December 1, 2008 at 4:01 am
I wish to insert more than 1 records using stored procedure, may I know how to do that?
Example:
Table A:
ID TransDT Actions
-- ----------- ----------
1 01-Dec-2008 02:00:00 Login
2 01-Dec-2008 03:12:10 Logout
3 01-Dec-2008 12:30:12 Login
4 01-Dec-2008 14:12:56 Login
I wish to select records where TransDT between 01-Dec-2008 07:00:00 and 01-Dec-2008 18:00:00 and insert into Table B.
Thanks
December 1, 2008 at 4:23 am
Insert into TableB(columns)
Select columns from TableA
Where TransDT between '01-Dec-2008 07:00:00' and '01-Dec-2008 18:00:00'
Failing to plan is Planning to fail
December 1, 2008 at 5:21 am
Yes Madhivanan is correct .. it will work fine.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy