select '1' , 'computer' , 'road' union
select '2' , 'math' , ' park' union
select '3' , 'music' , ' home';
系统显示
第二行出错:未找到要求的from
求大侠指导,跪求!!!!!!!!!!!!!!!!
13 个解决方案
#1
a136973446aa
(a136973446aa)
等 级:
结帖率:100.00%
楼主发表于:2011-10-09 17:09:48insert class(id,classname,address)
select '1' , 'computer' , 'road' union
select '2' , 'math' , ' park' union
select '3' , 'music' , ' home';
系统显示
第二行出错:未找到要求的from
求大侠指导,跪求!!!!!!!!!!!!!!!!
(a136973446aa)
等 级:
结帖率:100.00%
楼主发表于:2011-10-09 17:09:48insert class(id,classname,address)
select '1' , 'computer' , 'road' union
select '2' , 'math' , ' park' union
select '3' , 'music' , ' home';
系统显示
第二行出错:未找到要求的from
求大侠指导,跪求!!!!!!!!!!!!!!!!
#2
在mssql语法是没有问题.
#3
看起来没有什么问题啊
#4
insert into class(id,classname,address)
select '1' , 'computer' , 'road' union
select '2' , 'math' , ' park' union
select '3' , 'music' , ' home';
系统显示
第二行出错:未找到要求的from
求大侠指导,跪求!!!!!!!!!!!!!!!!
select '1' , 'computer' , 'road' union
select '2' , 'math' , ' park' union
select '3' , 'music' , ' home';
系统显示
第二行出错:未找到要求的from
求大侠指导,跪求!!!!!!!!!!!!!!!!
#5
恩,我用的oracle数据库,在dos下写的
#6
timeGetTime() 、time(NULL)、localtime这三个函数有什么区别呢?
#7
我也看了其他人的帖子,他们这样写都没有错误,我写了就有错误,都不知道哪里错了
#8
timeGetTime() 、time(NULL)、localtime这三个函数有什么区别呢?
#9
oracle去oracle版块问
#10
SQL Server是可以的,请问楼主是什么数据库
#11
CREATE TABLE test (
ID char(1),
VAL varchar(5)
);
INSERT INTO test
SELECT 'A', 'TRUE ' FROM dual UNION ALL
SELECT 'A', 'TRUE ' FROM dual UNION ALL
SELECT 'A', 'FALSE' FROM dual UNION ALL
SELECT 'A', 'TRUE ' FROM dual UNION ALL
SELECT 'A', 'TRUE ' FROM dual UNION ALL
SELECT 'A', 'TRUE ' FROM dual UNION ALL
SELECT 'A', 'FALSE' FROM dual UNION ALL
SELECT 'A', 'TRUE ' FROM dual UNION ALL
SELECT 'B', 'TRUE ' FROM dual UNION ALL
SELECT 'B', 'FALSE' FROM dual UNION ALL
SELECT 'B', 'TRUE ' FROM dual UNION ALL
SELECT 'B', 'TRUE ' FROM dual UNION ALL
SELECT 'B', 'FALSE' FROM dual ;
参考:
http://hi.baidu.com/wangzhiqing999/blog/item/0b3b681d1b871861dbb4bd4e.html
#12
insert into class(id,classname,address)
select '1' , 'computer' , 'road' FROM dual union
select '2' , 'math' , ' park' FROM dual union
select '3' , 'music' , ' home' FROM dual ;
--这种情况貌似就应该可以了
#13
用的是oracle
#1
a136973446aa
(a136973446aa)
等 级:
结帖率:100.00%
楼主发表于:2011-10-09 17:09:48insert class(id,classname,address)
select '1' , 'computer' , 'road' union
select '2' , 'math' , ' park' union
select '3' , 'music' , ' home';
系统显示
第二行出错:未找到要求的from
求大侠指导,跪求!!!!!!!!!!!!!!!!
(a136973446aa)
等 级:
结帖率:100.00%
楼主发表于:2011-10-09 17:09:48insert class(id,classname,address)
select '1' , 'computer' , 'road' union
select '2' , 'math' , ' park' union
select '3' , 'music' , ' home';
系统显示
第二行出错:未找到要求的from
求大侠指导,跪求!!!!!!!!!!!!!!!!
#2
在mssql语法是没有问题.
#3
看起来没有什么问题啊
#4
insert into class(id,classname,address)
select '1' , 'computer' , 'road' union
select '2' , 'math' , ' park' union
select '3' , 'music' , ' home';
系统显示
第二行出错:未找到要求的from
求大侠指导,跪求!!!!!!!!!!!!!!!!
select '1' , 'computer' , 'road' union
select '2' , 'math' , ' park' union
select '3' , 'music' , ' home';
系统显示
第二行出错:未找到要求的from
求大侠指导,跪求!!!!!!!!!!!!!!!!
#5
恩,我用的oracle数据库,在dos下写的
#6
timeGetTime() 、time(NULL)、localtime这三个函数有什么区别呢?
#7
我也看了其他人的帖子,他们这样写都没有错误,我写了就有错误,都不知道哪里错了
#8
timeGetTime() 、time(NULL)、localtime这三个函数有什么区别呢?
#9
oracle去oracle版块问
#10
SQL Server是可以的,请问楼主是什么数据库
#11
CREATE TABLE test (
ID char(1),
VAL varchar(5)
);
INSERT INTO test
SELECT 'A', 'TRUE ' FROM dual UNION ALL
SELECT 'A', 'TRUE ' FROM dual UNION ALL
SELECT 'A', 'FALSE' FROM dual UNION ALL
SELECT 'A', 'TRUE ' FROM dual UNION ALL
SELECT 'A', 'TRUE ' FROM dual UNION ALL
SELECT 'A', 'TRUE ' FROM dual UNION ALL
SELECT 'A', 'FALSE' FROM dual UNION ALL
SELECT 'A', 'TRUE ' FROM dual UNION ALL
SELECT 'B', 'TRUE ' FROM dual UNION ALL
SELECT 'B', 'FALSE' FROM dual UNION ALL
SELECT 'B', 'TRUE ' FROM dual UNION ALL
SELECT 'B', 'TRUE ' FROM dual UNION ALL
SELECT 'B', 'FALSE' FROM dual ;
参考:
http://hi.baidu.com/wangzhiqing999/blog/item/0b3b681d1b871861dbb4bd4e.html
#12
insert into class(id,classname,address)
select '1' , 'computer' , 'road' FROM dual union
select '2' , 'math' , ' park' FROM dual union
select '3' , 'music' , ' home' FROM dual ;
--这种情况貌似就应该可以了
#13
用的是oracle