摘要: my first javascript file hello,world! 阅读全文
posted @ 2015-10-20 23:44 sunshine-habit 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1.修改字段名称、字段类型等1 alter table user change death_date goodby_date datetime default NULL comment '死亡日期' 阅读全文
posted @ 2015-10-12 14:35 sunshine-habit 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1 SELECT [STRAIGHT_JOIN] [SQL_SMALL_RESULT] [SQL_BIG_RESULT] [HIGH_PRIORITY] 2 [DISTINCT | DISTINCTROW | ALL] 3 select_expression,... 4 [INTO {... 阅读全文
posted @ 2015-10-09 18:48 sunshine-habit 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 导入表数据 txt 1 mysql> load data infile "D:/import.txt" into table shop;输出: 2 Query OK, 5 rows affected (0.08 sec) 3 Records: 5 Deleted: 0 Skipped: 0 W... 阅读全文
posted @ 2015-09-21 10:33 sunshine-habit 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 增加记录:注:null关键字与auto_increment限制条件相结合,可以为字段自动赋值;字段必须全,且一一对应;字符型用单引号;1 mysql> insert into test values('sunshine_habit','hello_world_lyq@163.com'2 ->... 阅读全文
posted @ 2015-09-16 18:49 sunshine-habit 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 进入数据库:1 mysql> use sunshine_blog;输出:2 Database changed查数据库表:1 mysql> show tables;输出:2 +-------------------------+3 | Tables_in_sunshine_blog |4 +-----... 阅读全文
posted @ 2015-09-16 18:23 sunshine-habit 阅读(277) 评论(0) 推荐(0) 编辑
摘要: char(m) 固定长度字符串,m<=255;处理速度快;varchar(m) 可变长度字符串,m<=255;int(m) 整数型,-214783647到214783648之间,使用unsigned,则表示0到4294967295;float(m,d) 浮点类型,m,长度位数总和,d,小数点右边数值... 阅读全文
posted @ 2015-09-16 16:44 sunshine-habit 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 表格练习 1.我喜欢的歌曲 序号歌曲歌手 1.杨柳范宗沛 ... 阅读全文
posted @ 2014-11-27 16:01 sunshine-habit 阅读(188) 评论(0) 推荐(0) 编辑
摘要: CSS圆角: 1 /*纯css,设置图片圆角*/ 2 #top2 { 3 margin-left:20px; 4 padding:10px; width:600px; height:300px; 5 border: 5px solid #ff6... 阅读全文
posted @ 2014-11-20 18:10 sunshine-habit 阅读(166) 评论(0) 推荐(0) 编辑