码迷,mamicode.com
首页 > 其他好文 > 详细

yjh_study_command

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

标签:ble   arch   oralce   keyword   form   comm   mem   word   acl   

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

标签:ble   arch   oralce   keyword   form   comm   mem   word   acl   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!