【工作笔记】006 Oracle笔记

文字与格式字符串不匹配:

使用TO_DATE(”,”)格式化时间

    TO_DATE('2050-01-01 00:00:00','yyyy-mm-dd hh24:mi:ss')

时间转转字符串:

to_char(current_timestamp,'YYYY-MM-DD HH24:MI:SS')

时间转数字:

to_number(to_char(current_timestamp,'YYYY-MM-DD HH24:MI:SS'))

idea断点出现叉,直接跳过不执行:

码已更改,但没有编译,重写编译生成即可

Oracle 查看表注释:

select  distinct  a.COLUMN_NAME,b.comments from user_tab_columns a,user_col_comments b where a.TABLE_NAME=b.table_name and a.table_name=upper('表名')

此列列表已索引:

当在主键上边再添加索引时报这个错,去除重复所有即可

原文地址:https://www.cnblogs.com/cnsec/p/13286680.html