I know that in C#, we can use variable in a string.
For example:
int num = 3;
string str = "hello, I have " + num + " apple";
How are we going to do that in an insert statement in a SQL query?
Let's say I have 2 columns in my table and they are name
and remarks
, and I want to write an insert statement in my stored procedure.
For example:
Declare @emp_no int;
Insert into employee (name, remarks)
Values ('Joe', 'Employee's number' + @emp_no)
I am wondering if I can do something like this in my query?