`
sd8089730
  • 浏览: 253581 次
  • 性别: Icon_minigender_1
  • 来自: 吉林
社区版块
存档分类
最新评论

自己经常用的 SQL语句

SQL 
阅读更多

增加
"insert into 表名() values() "
删除
"delete 表名 where 表名_id="
更改
"update upload set upload_name=?,upload_photo=? where upload_id=?"
查询所有
"select * from upload"
查询一个
"select * from upload where upload_id="+id;
页面查询
"select top 3 * from upload where upload_id not in(select top "+3*page+" upload_id from upload)";

totlePage=(int)Math.ceil(((double)totleCount/10));

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics