Hi guys,
how can I send an IF statement by T-SQL?
Lets suppose that I want to insert something, for example;
the if statements change regarding the DB engine, I have installed MySQL Server 2005, when I send transactions the server version is 5.0.67-community-nt. I think that's why I get and 1064 Code Error. If you could advise me somehow I will appreciate so much.
Raul Bolaños,
Best regards.
how can I send an IF statement by T-SQL?
Lets suppose that I want to insert something, for example;
Code:
int n_count = 5;
string querytosend = @"if (" + n_count + " > 0)
INSERT persons (name, age, address) values ('raul', 23, 'Könnigstraße 23')";
Raul Bolaños,
Best regards.
Comment