Taiwan Food Nutrition Database

Nutritional information for Taiwanese foods, powered by Taiwan FDA open data.

{{ stats.foods }}
Foods
{{ stats.nutrients }}
Nutrients
{{ stats.categories }}
Categories
Download SQLite Database

SQL Playground

Loading SQL.js... Downloading database... {{ formatBytes(downloadProgress.loaded) }} / {{ formatBytes(downloadProgress.total) }} Initializing database...

Failed to load database: {{ loadError }}

Please try refreshing the page.

Note: FTS5 full-text search is not available in this playground. Use LIKE for text search. FTS5 works with the downloaded database.
{{ queryError }}
{{ col }}
NULL

{{ results.values.length }} row(s) returned

Query executed successfully. No results returned.

Run a query to see results

Schema Reference

Column Type
idINTEGER PK
nameTEXT

Food categories (e.g., 穀物類, 肉類)

Column Type
idINTEGER PK
nameTEXT

Nutrient groups (e.g., 維生素, 礦物質)

Column Type
idINTEGER PK
codeTEXT UNIQUE
name_zhTEXT
name_enTEXT NULL
category_idINTEGER FK
aliasTEXT NULL
descriptionTEXT NULL
waste_rateREAL NULL
serving_sizeREAL NULL

category_id → categories.id

Column Type
idINTEGER PK
category_idINTEGER FK
nameTEXT
unitTEXT NULL

category_id → nutrient_categories.id
Units: mg, g, ug, kcal, I.U.

Column Type
food_idINTEGER PK,FK
nutrient_idINTEGER PK,FK
value_per_100gREAL NULL
sample_countINTEGER NULL
std_deviationREAL NULL

food_id → foods.id
nutrient_id → nutrients.id