文章分类 -  oracle

Oracle数据库游标使用大全
摘要:SQL是用于访问ORACLE数据库的语言,PL/SQL扩展和加强了SQL的功能,它同时引入了更强的程序逻辑。PL/SQL支持DML命令和SQL的事务控制语句。DDL在PL/SQL中不被支持,这就意味作在PL/SQL程序块中不能创建表或其他任何对象。较好的PL/SQL程序设计是在PL/SQL块中使用象DBMS_SQL这样的内建包或执行EXECUTE IMMEDIATE命令建立动态SQL来执行DDL命... 阅读全文
posted @ 2006-08-23 12:45 加西亚 阅读(166) 评论(0) 推荐(0)
oracle中用一个table update另一个table的写法
摘要:Shally @ 2004-11-05 12:54 update test a set (a.prdn_st,avg_yield)=(select b.prd_st,b.avg_yield from test11 b where a.prd_no=b.prd_no and a.plant=b.plant ) 但是需要注意的是必须要一对一,否则oracle会报错: ORA-01427: s... 阅读全文
posted @ 2006-08-23 12:34 加西亚 阅读(870) 评论(0) 推荐(0)
Oracle/PLSQL: NVL Function
摘要:In Oracle/PLSQL, the NVL function lets you substitute a value when a null value is encountered. The syntax for the NVL function is: NVL( string1, replace_with ) string1 is the string to test for a ... 阅读全文
posted @ 2006-08-17 16:45 加西亚 阅读(802) 评论(0) 推荐(0)