![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ORACLE
tomatoo_13
这个作者很懒,什么都没留下…
展开
-
把表PERSON里所有的a换成b, 所有的b换成a
update PERSON set sex=( case when sex='a' then 'b' when sex='b' then 'a' end )原创 2022-01-05 11:28:29 · 254 阅读 · 0 评论 -
ORACLE创建序列
1. A为库名,B为表名 create sequence A.SEQ_B minvalue 1 maxvalue 99999999999999999999 start with 1 increment by 1 cache 20; 2. 字段解读 createsequenceA.SEQ_B //SEQ_后边为表名 minvalue1 //最小值 maxvalue9999999999999999999 //生成的最大值 startwith1 //序列的初始值,默认为1 i...原创 2021-12-31 11:17:42 · 7232 阅读 · 0 评论