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