码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
SQL关于Group by having 体会(借鉴其他博客)
备注:(练习sql语句时发现的一些问题,仅供参考和交流)//from where gourpby having orderby 1.sql基本执行的顺序是:from >where>Gourp by > having >orderby (having可用于聚合函数和分组的过滤一般用于Group ...
分类:数据库   时间:2015-10-14 17:50:07    阅读次数:168
mysql更新密码为空
1、进入命令行mysql -u root -p 'oldpassword';2 修改root用户的密码;mysql> update mysql.user set password=PASSWORD('新密码') where User='root';mysql> flush privileges;my...
分类:数据库   时间:2015-10-14 15:37:41    阅读次数:221
SQL 字符串替换
SQL 语句:update 表名 set 字段名=replace(cast(字段名 as varchar(2000)),'需要被替换字符','用来替换的字符')where content like '%字符%'例: update os_article set content=replace(c...
分类:数据库   时间:2015-10-14 12:33:33    阅读次数:207
sql 分组查询满足条件所以数据
1 select distinct t1.pciBillID,2 STUFF((SELECT distinct t2.Invoicenumber+ ','3 from TB_PCustomerInvoiceextend t24 where t1.pciBil...
分类:数据库   时间:2015-10-14 11:54:11    阅读次数:160
[LeetCode]24. Search Insert Position插入位置
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or...
分类:其他好文   时间:2015-10-13 21:05:16    阅读次数:125
数据库 基础2
---恢复内容开始---数据库 增 删 改 查 这是数据库中做的最多的inster delete update select 在数据库中创建和删除表(create table 和 drop table)常用的关键字 还有where, order by ,group by 和having,limitc...
分类:数据库   时间:2015-10-13 20:49:47    阅读次数:242
sql 查看某用户的连接数 以及 如何删除该用户的会话
--查看不同用户的连接数select TERMINAL from v$session where username='username' and machine='machine'---查询用户会话select username,serial#, sid from v$session where s...
分类:数据库   时间:2015-10-13 18:54:04    阅读次数:199
(转载)了解Android 4.1,之三:黄油项目 —— 运作机理及新鲜玩意
Welcome back to GTKA, everyone's favorite investigative series where we learn all about the newest version of Android (with a heavy emphasis on "all")...
分类:移动开发   时间:2015-10-13 18:35:07    阅读次数:257
Smali文件语法解析
大家都应该知道APK文件其实就是一个MIME为ZIP的压缩包,我们修改ZIP后缀名方式可以看到内部的文件结构,例如修改后缀后用RAR打开鳄鱼小顽皮APK能看到的是(Google Play下载的完整版版本): Where‘s My Water.zip...
分类:其他好文   时间:2015-10-13 17:25:59    阅读次数:278
数据库索引
分 类聚簇索引 非聚簇索引例如这样一个查询:select * from table1 where id=10000。如果没有索引,必须遍历整个表,直到ID等于10000的这一行被找到为止;有了索引之后(必须是在ID这一列上建立的索引),即可在索引中查找。由于索引是经过某种算法优化过的,因而查找次数....
分类:数据库   时间:2015-10-13 16:44:17    阅读次数:158
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!