首页 > 其他 > 详细

yjh_study_command

时间:2017-10-27 01:02:23      阅读:285      评论:0      收藏:0      [点我收藏+]

1.show current user in oralce

ansower:show user

2.search  name of table  in current user model.

answer:SELECT table_name FROM user_tables;  remember: dictionary user_tables;

3.how to find user by talbe name.

eg.I knows the table name is job_history in oracle.

answer:SELECT owner, table_name FROM dba_tables WHERE table_name IN ‘JOB_HISTORY‘;  

NOTE:  IN  replaced by LIKE.

4.how to use to_date() function in work

eg.SELECT to_date(‘20171026 22:42:50‘,‘yyyy-MM-dd hh24:mi:ss‘) FROM dual;   

NOTE:it can is 12  after in  the hh or if can‘t remeber to_date()  format use order by keyword  with desc.

yjh_study_command

原文:http://www.cnblogs.com/yjhlsbnf/p/7739832.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!