PLS-00428: an INTO clause is expected in this SELECT statement
2012-07-18 18:06
507 查看
解决:select 后面跟into
SQL> begin
2 v_xml clob;
3 for i in (select keyid from tb_intf_rcgdxx_text2 where rownum<1001) loop
4 select XML from tb_intf_rcgdxx_text2 tws where tws.keyid=i.keyid for update;
5 end loop;
6 end;
7 /
SQL>
declare
v_xml clob;
begin
3 for i in (select keyid from tb_intf_rcgdxx_text2 where rownum<1001) loop
4 select XML into v_xml from tb_intf_rcgdxx_text2 tws where tws.keyid=i.keyid for update;
5 end loop;
6 end;
7 /
SQL> begin
2 v_xml clob;
3 for i in (select keyid from tb_intf_rcgdxx_text2 where rownum<1001) loop
4 select XML from tb_intf_rcgdxx_text2 tws where tws.keyid=i.keyid for update;
5 end loop;
6 end;
7 /
SQL>
declare
v_xml clob;
begin
3 for i in (select keyid from tb_intf_rcgdxx_text2 where rownum<1001) loop
4 select XML into v_xml from tb_intf_rcgdxx_text2 tws where tws.keyid=i.keyid for update;
5 end loop;
6 end;
7 /
相关文章推荐
- PLS-00428: an INTO clause is expected in this SELECT statement
- SELECT list is not in GROUP BY clause and contains nonaggregated column this is incompatible with sql_mode=only_full_group_by
- There is no statement named OproductKey.selectProductkey in this SqlMap
- This is probably a good time to review the order in which SELECT statement clauses are to be specified. Table 10.2 lists all the clauses we have learned thus far, in the order they must be used.
- #1055 - Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this i
- invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause
- #1055 - Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this i
- #1055 - Expression of SELECT list is not in GROUP BY clause and contains nonaggregated column this i
- IAR中出现the order of volatile accesses is undefined in this statement的解决办法
- vc中如何解决“This file is already open in an editor”
- error C3872: '0x3000': this character is not allowed in an identifier 解决方法
- ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregate
- com.ibatis.sqlmap.client.SqlMapException: There is already a statement named search in this SqlMap.
- Mysql 升级到 5.7.16,group by 一直报home brew on columns in GROUP BY clause; this is incompatible with sql
- ibatis 报错:There is already a statement named uhr.rcmt.updateResumeScore in this SqlMap.
- 解决安装vmware workstation出现this port is in use by anohter program的方法
- ibatis与spring的配置( There is no statement named XXX in this SqlMap)
- SqlMapException: There is no statement named xxx in this SqlMap.
- com.ibatis.sqlmap.client.SqlMapException: There is no statement named Control.insert-control in this SqlMap.
- VS2005中编译出错:Error 1 error C3872: '0x3000': this character is not allowed in an identifier