![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ORACLE
gaoshanwudi
这个作者很懒,什么都没留下…
展开
-
Oracle自增字段
Oracle上没有自增字段,可以使用索引和触发器来达到此目的 第一步:创建SEQUENCE create sequence s_country_id increment by 1 start with 1 maxvalue 999999999; 第二步:创建一个基于该表的before insert 触发器,在触发器中使用该SEQUENCE create or replace trigger bef转载 2012-03-18 22:11:59 · 950 阅读 · 0 评论 -
DROP TABLE IF EXISTS” in Oracle and SQL Server
In MySQL it is pretty easy to drop a table if it exists already. In Oracle and Microsoft’s SQL Server it is a little more complicated. Today I want to present you the solutions for these two DBMS’.翻译 2012-03-18 22:14:03 · 1940 阅读 · 0 评论 -
ORACLE函数大全
SQL中的单记录函数1.ASCII返回与指定的字符对应的十进制数;SQL> select ascii('A') A,ascii('a') a,ascii('0') zero,ascii(' ') space from dual; A A ZERO SPACE--------- --------- --------- -----转载 2012-03-18 22:15:03 · 398 阅读 · 0 评论