mysql - c# SQLCOMMAND giving error -


sqlcommand cmd=new sqlcommand(); cmd.commandtext="select username, password \"user\" username = 'admin'   , password = 'password123' "; adp.fill(ds); 

now above query getting succesffuly executed in mysql , mssql,but c# code giving error incorrect sytax "user" wrong? note:-i want above query run in mysql , mssql both,and note user reserved keyword in sql

for mysql use

from `user` 

for sql server use

from [user] 

for oracle use

from "user" 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -