ORA-01036: 非法的变量名/编号

问题出在SQL语句中参数定义不对。SQL server中用“@”定义参数,而Oracle中用“:”

 

把如select * from test where id=@id改成select * from test where id=:id 便可

posted on 2009-11-17 09:51  石牌村夫  阅读(778)  评论(0编辑  收藏  举报