![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
_轻舞菲洋
这个作者很懒,什么都没留下…
展开
-
数据库获取前N条记录SQL Server与SQLite的区别
转自:http://www.csdn123.com/html/itweb/20130929/144045.htm在使用sql语句进行前20条记录查询时SQL Server可以这样写:1: select top 20 * from [table] order by ids desc2: select top 20 * from [table] where id n转载 2015-10-14 15:34:33 · 883 阅读 · 0 评论 -
sqlite 获取数据库所有表名和字段名
转自:http://blog.sina.com.cn/s/blog_77eab95f0101t8qp.html查询table,type 段是'table',name段是table的名字, so:select name from sqlite_master where type='table' order by name; 查询indices,type转载 2015-10-29 15:30:11 · 10722 阅读 · 0 评论