Posted: Mon Aug 24, 2009 9:56 pm Post subject: Help required with INSERT statment
Newbie
Joined: 04 Aug 2009 Posts: 9
Hello,
I am trying to use the below insert statement to insert data into database
INSERT INTO Database.Sample(ID,Name) values(INPUT);
Where INPUT is a character variable that contains the value 'OR','UORU'
When I run this statement I see that it’s throwing an exception saying number of values inserted are different from the number of columns inside the table
Could some one help me how to store values in a variable and directly pass those values?
In my requirement all my values come dynamically and i want to use them as they come by storing them inside a variable and passing the variable to the insert statement
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