报错:SQL> SP2-0734: 未知的命令开头 "where a.de..." - 忽略了剩余的行。
2016-07-08 20:46
381 查看
问题:在数据库中查询数据,代码如下:
执行后报错,各种忽略了剩余的行,经过查询发现是因为sql语句里有一行空行,出现了这个问题。去掉空行后问题就解决了。
select count(1) from ( select a.device_id as "deviceId", a.sevice_type as "seviceType", a.pw_id as "pwId", a.a_local_sign as "aLocalSign", a.a_remote_sign as "aRemoteSign", a.serv_port as "servPort", a.serv_vlan as "servVlan", a.status as "status", a.zb_pw_flag as "zbPwFlag", a.gather_time as "gatherTime", a.device_name as "deviceName", a.loopback_ip as "loopbackIp", a.city_name as "cityName", b.portdesc as "portDesc" from ( select a.device_id, a.sevice_ty 4000 pe, a.pw_id, a.a_local_sign, a.a_remote_sign, a.serv_port, a.serv_vlan, a.status as, a.zb_pw_flag, a.gather_time, b.device_name, b.loopback_ip, c.city_name from ipran_a_pw_resource a,tab_deviceresource b,tab_city c where a.device_id=b.device_id and b.city_id=c.city_id order by a.device_id,a.sevice_type,a.a_local_sign) a left join ipran_port_ip b on a.device_id=b.device_id and a.serv_port=b.portname) t
执行后报错,各种忽略了剩余的行,经过查询发现是因为sql语句里有一行空行,出现了这个问题。去掉空行后问题就解决了。
相关文章推荐
- Android之获取手机上的图片和视频缩略图thumbnails
- 数据库链接字符串查询网站
- DB2实例管理
- DB2实例管理
- 保障MySQL数据安全的14个最佳方法
- mysql问答汇集
- 第三章 数据库备份和还原
- 创建一个空的IBM DB2 ECO数据库的方法
- Access 2000 数据库 80 万记录通用快速分页类
- 开通一个数据库失败的原因的和解决办法
- 一个简单的asp数据库操作类
- CentOS下DB2数据库安装过程详解
- EasyASP v1.5发布(包含数据库操作类,原clsDbCtrl.asp)第1/2页
- sql2008 还原数据库解决方案
- Oracle 数据库自动存储管理-安装配置
- Oracle数据库执行脚本常用命令小结
- Oracle 数据库 临时数据的处理方法
- 数据库分页查询语句数据库查询
- 最近比较流行的数据库挂马