码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
一些oracle基础
查询所有用户:select * from all_users;手动注册监听:alter system register;oracle密码过期设置1,查询select * from dba_profiles where profile='DEFAULT' and resource_name='PASS...
分类:数据库   时间:2015-04-30 15:42:33    阅读次数:224
Oracle学习笔记
本笔记以orcal数据库为例,其它数据库略有不同. 一、写子句顺序     Select [ALL | DISTINCT]  column_name [, column_name]...     From  {table_name | view_name}               [, {table_name | view_name}]...     [Where  sear...
分类:数据库   时间:2015-04-30 14:19:48    阅读次数:196
MySQL、You are using safe update mode
MySQL默认模式是sql_safe_updates=1的。在这个模式下不管你是update还是delete一行where 条件都要指定主键。如果where条件只出现的不是主键就会出错。例子: set sql_safe_updates =1;--开始安全更新、这个是我这个例子的前提。 --第一步.....
分类:数据库   时间:2015-04-30 14:01:37    阅读次数:159
Oracle 更新多条数据
select sid, cjsj from base_zjxx where cjsj = to_date('0001/1/1', 'yyyy/mm/dd');select * from sys_user where qyid in (90656, 90655, 90646, 90641, 906.....
分类:数据库   时间:2015-04-30 12:31:37    阅读次数:181
Oracle根据表的大小排序SQL语句
--按照数据行数排序select table_name,blocks,num_rows from dba_tables where owner not like '%SYS%' and table_name not like '%$%' and num_rows is not nullorder b...
分类:数据库   时间:2015-04-30 12:28:40    阅读次数:166
数据库
在程序运行过程中,要想操作(增删改查,CRUD)数据库中的数据,必须使用SQL语句 select、insert、update、delete、from、create、where、desc、order、by、group、table、alter、view、index SQL语句的种类 数据定义语句(DDL:Data Definition Language) ...
分类:数据库   时间:2015-04-30 08:55:01    阅读次数:229
11. Container With Most Water
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:其他好文   时间:2015-04-30 07:33:13    阅读次数:114
MySQL常见的异常
1.ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)首先尝试:delete from mysql.user where user is NULL or user='';commit;...
分类:数据库   时间:2015-04-30 07:30:23    阅读次数:189
【转】MySQL执行计划分析
原文:http://www.cnblogs.com/wangyanhong/archive/2013/09/18/3327919.html一.语法explain 例如: explain select * from t3 where id=3952602;二.explain输出解释+----+----...
分类:数据库   时间:2015-04-29 23:22:02    阅读次数:220
Yii2.0 对数据库 查询的一些简单的操作(转载)
User::find()->all(); 此方法返回所有数据; User::findOne($id); 此方法返回 主键 id=1 的一条数据(举个例子); User::find()->where(['name' => '小伙儿'])->one(); 此方法返回 [...
分类:数据库   时间:2015-04-29 23:20:46    阅读次数:192
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!