
sql Server
Matrix-
这个作者很懒,什么都没留下…
展开
-
SQL Server T-SQL高级查询
高级查询在数据库中用得是最频繁的,也是应用最广泛的。Ø 基本常用查询--selectselect * from student; --all 查询所有select all sex from student; --distinct 过滤重复select distinct sex from student; --count 统计select原创 2013-07-03 19:14:39 · 755 阅读 · 0 评论 -
一次插入多条记录的SQL语句介绍
在使用SQL数据库的时候,我们也许会需要一次像数据库中添加多条记录,那么我们可以使用SQL语句来实现,该语句具体如下:--添加一条记录 INSERT INTO tableName(col1,col2,col3) VALUES (1,2,3) --添加多条记录 INSERT INTO tableName(col1,col2,col3) SEL原创 2013-11-11 16:05:06 · 4654 阅读 · 0 评论 -
mysql 日期和毫秒数的转换
select UNIX_TIMESTAMP('2011-05-31 23:59:59');select from_unixtime(1306771200); SELECT NOW();select from_unixtime(1399537700); select UNIX_TIMESTAMP(NOW()) * 1000;原创 2014-05-08 16:28:28 · 38341 阅读 · 1 评论