Google Android Study Jam 學習筆記(6)
學習範圍
單元 5、單元 6、Jetpack
SQL 語法
statement
1 2 3
SELECT name FROM park WHERE type != "recreation_area" AND area_acres > 100000
function
1 2 3 4
SELECT COUNT(*) FROM park SELECT SUM(park_visitors) FROM park SELECT MAX(area_acres) FROM park SELECT COUNT(DISTINCT type) FROM park
ordering & grouping
1 2 3 4 5 6 7
/* sort by descending order*/ SELECT name FROM park ORDER BY name DESC /* see how many parks of each type are present, and get a separate count for each. */ SELECT type, COUNT(*) FROM park GROUP BY type ORDER BY type
inserting & deleting
1 2 3 4 5 6 7 8 9 10 11 12
INSERT INTO table_name VALUES (column1, column2, ...) UPDATE table_name SET column1 = ..., column2 = ..., ... WHERE column_name = ... ... DELETE FROM table_name WHERE column_name = ...
Kotlin 語法
- companion object: class 中靜態的成員或方法,可以讓 class 不是整個都靜態的
Android Studio
- DAO
- Flow
- datastore
- WorkManager
- Worker
- WorkRequest
- WorkManager
- Jetpack