> For the complete documentation index, see [llms.txt](https://docs.postgresql.tw/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.postgresql.tw/19/appendixes/contrib/isn/isn-data-types.md). Agents can also search and read this documentation through its [MCP server](https://docs.postgresql.tw/~gitbook/mcp).

# F.20.1. 資料型別

## F.20.1. 資料型別 [#](#isn-data-types) <a href="#isn-data-types" id="isn-data-types"></a>

[表 F.10](#isn-datatypes) 顯示 `isn` 模組提供的資料型別。

### 表 F.10. `isn` 資料型別 [#](#isn-datatypes) <a href="#isn-datatypes" id="isn-datatypes"></a>

| 資料型別     | 說明                          |
| -------- | --------------------------- |
| `EAN13`  | 歐洲商品編碼，一律以 EAN13 顯示格式顯示     |
| `ISBN13` | 國際標準書號，以新的 EAN13 顯示格式顯示     |
| `ISMN13` | 國際標準音樂作品編號，以新的 EAN13 顯示格式顯示 |
| `ISSN13` | 國際標準期刊號，以新的 EAN13 顯示格式顯示    |
| `ISBN`   | 國際標準書號，以舊的簡短顯示格式顯示          |
| `ISMN`   | 國際標準音樂作品編號，以舊的簡短顯示格式顯示      |
| `ISSN`   | 國際標準期刊號，以舊的簡短顯示格式顯示         |
| `UPC`    | 通用產品代碼                      |

<br>

注意事項：

1. ISBN13、ISMN13、ISSN13 號碼都是 EAN13 號碼。
2. EAN13 號碼不一定是 ISBN13、ISMN13 或 ISSN13（有些是）。
3. 部分 ISBN13 號碼可顯示為 ISBN。
4. 部分 ISMN13 號碼可顯示為 ISMN。
5. 部分 ISSN13 號碼可顯示為 ISSN。
6. UPC 號碼是 EAN13 號碼的子集（基本上是移除第一個 `0` 數字的 EAN13）。
7. 所有 UPC、ISBN、ISMN 與 ISSN 號碼都可表示為 EAN13 號碼。

在內部，所有這些型別使用相同表示法（64 位元整數），並可相互轉換。提供多種型別是為了控制顯示格式，以及對應該表示某個特定號碼型別的輸入進行更嚴格的有效性檢查。

`ISBN`、`ISMN` 與 `ISSN` 型別會在可能時顯示號碼短版（ISxN 10），而不適用短版的號碼則顯示為 ISxN 13 格式。`EAN13`、`ISBN13`、`ISMN13` 與 `ISSN13` 型別一律顯示 ISxN 的長版（EAN13）。

[返回 F.20. isn — 國際標準號碼的資料型別（ISBN、EAN、UPC 等）](https://docs.postgresql.tw/19/appendixes/contrib/isn.md#isn)

***

原文：[PostgreSQL 18.6 Documentation](https://www.postgresql.org/docs/18/isn.html)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.postgresql.tw/19/appendixes/contrib/isn/isn-data-types.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
