Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net “,”附近的错误不正确_Asp.net - Fatal编程技术网

Asp.net “,”附近的错误不正确

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语句,

我在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语句,您可以尝试以下操作

插入tempslno,name 从表1、表2中选择表1.slno、表2.name
其中table1.slno=table2.slno

你为什么要通过两个问题?你想达到什么?你能解释一下你想做什么吗?以及表格结构。insert语句不正确。insert into有三列,值包含两列。