取得するデータの個数を制限して、データベースがクラッシュするのを防ぎましょう。
デフォルトは1000でした。
1 2 3 4 5 6 |
#(9)取得する数に制限を与える limit句 select * from products limit 10; select * from products limit 0,10; select * from products limit 10,20; select * from users where last_name like '中%' limit 0,1000; select id,last_name,gender from users where gender=1 limit 10; |
次回はcsvとして保存する方法をやっていきましょう。
The following two tabs change content below.
Keita N
最新記事 by Keita N (全て見る)
- Freenove ESP32-WROVER Board CAMを購入しました。その2 - 2023年11月4日
- Freenove ESP32-WROVER Board CAMを購入しました。 - 2023年11月4日
- ANOGAN 第一話 - 2023年6月16日