当前位置: 代码迷 >> SQL >> 自个儿经常用的 SQL语句
  详细解决方案

自个儿经常用的 SQL语句

热度:27   发布时间:2016-05-05 13:19:30.0
自己经常用的 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));

  相关解决方案