Asp.net “,”附近的错误不正确
我在C中使用了以下查询,并在附近得到了错误的语法Asp.net “,”附近的错误不正确,asp.net,Asp.net,我在C中使用了以下查询,并在附近得到了错误的语法 " insert into TEMP (Temp,Temp_price,CS_id) Select Menu_item, Menu_Price where Menu_id=@Menu_id , Select top 1 User_ID from UserInformation "; 当@menu_id=button.command参数时,在该查询中不能有两个SELECT语句,
" insert into
TEMP (Temp,Temp_price,CS_id)
Select
Menu_item, Menu_Price
where
Menu_id=@Menu_id , Select top 1 User_ID from UserInformation ";
当@menu_id=button.command参数时,在该查询中不能有两个SELECT语句,您可以尝试以下操作 插入tempslno,name 从表1、表2中选择表1.slno、表2.name
其中table1.slno=table2.slno你为什么要通过两个问题?你想达到什么?你能解释一下你想做什么吗?以及表格结构。insert语句不正确。insert into有三列,值包含两列。