sql
沙漠里的沙
这个作者很懒,什么都没留下…
展开
-
整理一些有用的sql
查询违反约束select cu.* from user_cons_columns cu, user_constraints au where cu.constraint_name = au.constraint_name and au.constraint_type = ‘P’ and au.constraint_name=‘SYS_C007734’;查询某张表某个时间点的数据select * from tableName as of timestamp to_timestamp(‘2020-08-.原创 2020-08-31 18:08:37 · 94 阅读 · 0 评论 -
字符串截取 oracle
字符串截取 oracle截取字符串的指定位置(从字符串的最后一个‘/’截取到Input.jsp之前)修改表中另一个字段值为截取后的值截取字符串的指定位置(从字符串的最后一个‘/’截取到Input.jsp之前)截取sql:select substr(editurl,instr(editurl, '/', -1, 1)+1,instr(editurl, 'Input.jsp', 1, 1)-1...原创 2019-08-28 15:24:21 · 330 阅读 · 0 评论