码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
mysql清表数据
delete from 表名;truncatetable 表名;不带where参数的delete语句可以删除mysql表中所有内容,使用truncate table也可以清空mysql表中所有内容。效率上truncate比delete快,但truncate删除后不记录mysql日志,不可以恢复数据。...
分类:数据库   时间:2015-07-20 09:05:56    阅读次数:364
imshow
imshowDescriptionimshow(I) displays image I in a Handle Graphics® figure, where I is a grayscale, RGB (truecolor), or binary image. For binary image.....
分类:其他好文   时间:2015-07-19 19:30:32    阅读次数:201
[mysql]子查询与连接
1,子查询(Subquery)是指出现在其他 SQL 语句内的select子句例如:select * from t1 where col1 = (select col2 from t2);其中 select * from t1, 称为Outer Query/Outer Statementselect...
分类:数据库   时间:2015-07-19 18:00:22    阅读次数:172
如何用php写app接口[原创]
人生就如一列永不停止的列车,no one knows when or where to stop.总有那些美好,值得永远怀念。也总有那些希望,值得你无怨无悔的付出,追逐。去年年底带着女儿一起坐火车会湖北老家,她在火车上,三岁的样子,活泼,调皮,可爱的样子,永远停在那儿,不会有一样的了吧。cheris...
分类:移动开发   时间:2015-07-19 16:15:44    阅读次数:109
LeetCode Product of Array Except Self
Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i].Solve it without division and in O(n).For ...
分类:其他好文   时间:2015-07-19 15:02:49    阅读次数:117
Mysql常用语句与函数(待续)
-- 查询语句select class from stu_info where sid=1000000102;select * from stu_info t where t.age=88; -- t是表的别名,多表查询时比较方便select * from atable a, btable...
分类:数据库   时间:2015-07-19 14:47:57    阅读次数:210
[LeetCode][Java] Largest Rectangle in Histogram
题目: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram. Above is a histogram where wi...
分类:编程语言   时间:2015-07-19 13:35:37    阅读次数:128
group by;having;order by
1.order by 1,2,3 和 order by 3,2,1 的结果不同2.having 不能使用别名 ;order by 中可以使用别名 在oracle中的执行顺序: select_list > where > group by > having() > alias > or...
分类:其他好文   时间:2015-07-19 11:49:47    阅读次数:109
【MySQL】SQL语法,between and 使用注意事项
业务代码中有条查询学生姓名的sql:select stu_name from stu_info where stu_id between id_1 and id_2;估计当时一时恍惚,拼接sql时 传参有误导致 id_1 > id_2,导致始终查询不到学生姓名。。。对于MySQL不检查between...
分类:数据库   时间:2015-07-19 01:20:18    阅读次数:314
SQLServer:《SQL必知必会》一书的读书笔记(五)
第5课 高级数据过滤5.1 组合 WHERE 子句 第4课介绍的 WHERE 子句在过滤数据时都是用单一的条件。5.1.1 AND 操作符 检索由供应商 DLL01 制造且价格小于等于 4 美元的所有产品的名称和价格:SELECT prod_id, prod_price, prod_nameFR.....
分类:数据库   时间:2015-07-18 21:18:38    阅读次数:250
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!