how to give input dynamically to a insert statement in
sqlserver
Answer Posted / ashutosh rai
Declare @id int,@name varchar(100),@class varchar(100)
set @id=1
set @name='Ashutosh'
set @class='MCA'
insert into student_table(id,name,class)
values(@id,@name,@class)
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What are the main sources of data?
How to receive output values from stored procedures?
What is the cpu pressure?
Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?
What is sql server used for?
What is similarity and difference between truncate and delete in sql?
What is data modeling and Reterminal integrity?
How will you find out if there are expensive SQL statements running or not?
How to list all schemas in a database?
What happens if null values are involved in boolean operations?
Why are you getting errors when creating a new odbc dsn?
What changes in the front end code is needed if mirroring is implemented for the high availability? : sql server database administration
Explain “row_number()” in sql server with an example?
How is sql used in sql server?
What is difference between joins and subqueries?