SELECT:テーブルからレコードを抽出
select * from テーブル名 order by フィールド名 desc; →フィールド名で降順出力。
select count(*) as 任意フィールド名 from テーブル名 where フィールド名 like '%条件%'; →あるフィールドの条件を含むレコードの数をカウント。
制作に関する私的なメモです
select * from テーブル名 order by フィールド名 desc; →フィールド名で降順出力。
select count(*) as 任意フィールド名 from テーブル名 where フィールド名 like '%条件%'; →あるフィールドの条件を含むレコードの数をカウント。