数据库
首页 > 数据库> > 常用sql操作语句

常用sql操作语句

作者:互联网

select * from books
select * from book_catalogue
select * from book_chapter

select * from book_catalogue
select * from book_catalogue limit 100 offset 300
select count(*) as total_numbers from book_catalogue;
select count(*) as done_numbers from book_catalogue where down_flag='1';
select count(*) as init_numbers from book_catalogue where down_flag='0';
select *  from book_catalogue where down_flag='0';
select count(*) as fail_numbers from book_catalogue where down_flag='2';


select * from book_chapter where chapter_id ='116'
select * from book_chapter 
select count(*) from book_chapter 
select count(*) from book_chapter where chapter_content like '%看更多好看的小说%'
select chapter_content from book_chapter where chapter_id ='1'

标签:语句,chapter,常用,count,catalogue,book,sql,where,select
来源: https://www.cnblogs.com/yuexiao/p/15571269.html