雕刻时光

just do it……nothing impossible
随笔 - 547, 文章 - 0, 评论 - 82, 阅读 - 86万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  数据库学习

摘要:转自:https://blog.csdn.net/zhemeban/article/details/71901759 Example类是什么? Example类指定如何构建一个动态的where子句. 表中的每个non-BLOB列可以被包括在where子句中. 例子是展示此类用法的最好方式. Exam 阅读全文

posted @ 2018-06-06 22:37 huhuuu 阅读(2715) 评论(0) 推荐(0) 编辑

摘要:更多写法参考:http://www.cnblogs.com/martinzhang/p/3220595.html 阅读全文

posted @ 2017-06-20 14:10 huhuuu 阅读(491) 评论(0) 推荐(0) 编辑

摘要:个人感觉应该下面的效率高,mark 阅读全文

posted @ 2016-08-10 19:14 huhuuu 阅读(397) 评论(0) 推荐(0) 编辑

摘要:不要以为text就只有一种类型!Text也分为四种类型:TINYTEXT、TEXT、MEDIUMTEXT和LONGTEXT其中TINYTEXT 256 bytes TEXT 65,535 bytes ~64kb MEDIUMTEXT 16,777,215 bytes ~16MB LONGTEXT 4 阅读全文

posted @ 2016-07-05 19:38 huhuuu 阅读(1401) 评论(0) 推荐(0) 编辑

摘要:<isNotEqual property="id" compareValue="0" prepend="and">id=#id#</isNotEqual> 这个并不检查id是否为空!!!如果id为空,就会把这个id=?传给数据库进行查询就会有问题!! 可以写成这样 <isNotNull proper 阅读全文

posted @ 2016-03-03 16:03 huhuuu 阅读(272) 评论(0) 推荐(0) 编辑

摘要:一、基础 1、说明:创建数据库 CREATE DATABASE database-name 2、说明:删除数据库 drop database dbname 3、说明:备份sql server --- 创建 备份数据的 device USE master EXEC sp_addumpdevice 'd 阅读全文

posted @ 2016-02-05 09:38 huhuuu 阅读(214) 评论(0) 推荐(0) 编辑

摘要:select * from **** order by `create_time` desc limit 220; 按时间顺序递减 select COLUMN_NAME from information_schema.COLUMNS where table_name = '****'; 获取一个表的 阅读全文

posted @ 2016-01-23 20:46 huhuuu 阅读(146) 评论(0) 推荐(0) 编辑

摘要:select * from table where target_text like "3";等价于select * from table where target_text = "3";查找出来的都是target_text 为 3 的数据select * from table where t... 阅读全文

posted @ 2015-11-09 16:24 huhuuu 阅读(906) 评论(0) 推荐(0) 编辑

摘要:1.CHAR的长度是固定的,而VARCHAR2的长度是可以变化的, 比如,存储字符串“abc",对于CHAR (10),表示你存储的字符将占10个字节(包括7个空字符),而同样的VARCHAR2 (10)则只占用3个字节的长度,10只是最大值,当你存储的字符小于10时,按实际长度存储。 2.CHAR... 阅读全文

posted @ 2015-10-27 17:35 huhuuu 阅读(620) 评论(0) 推荐(0) 编辑

摘要:表名: person字段: id, name, age1 张三 202 李四 223 王五 23查询: select id,name,age from person;删除: delete from person where id=1 (删除ID=1的那条数据,)delete from person ... 阅读全文

posted @ 2015-08-19 09:30 huhuuu 阅读(344) 评论(0) 推荐(0) 编辑

摘要:写在前面的话在编程领域有一句人尽皆知的法则“程序 = 数据结构 + 算法”,我个人是不太赞同这句话(因为我觉得程序不仅仅是数据结构加算法),但是在日常的学习和工作中我确认深深感受到数据结构和算法的重要性,很多东西,如果你愿意稍稍往深处挖一点,那么扑面而来的一定是各种数据结构和算法知识。例如几乎每个程... 阅读全文

posted @ 2015-03-16 12:02 huhuuu 阅读(181) 评论(0) 推荐(0) 编辑

摘要:View Code SELECT snum,sname,ssex,sbirth,dnumFROM s--where snum='S006'WHERE dnum='d02'SELECT score,snumfrom scwhere score>=60 and score<=85SELECT snum,snamefrom swhere sname like '王_'SELECT cnum,score*1.5from scwhere cnum='c01'and score is not nullselect distinct 阅读全文

posted @ 2011-03-15 15:05 huhuuu 阅读(129) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示