## position,locate
### 說明
| 函數 | 說明 |
| --- | --- |
| position(substr in str) | 返回子串substr在字符串str中第一次出現的位置 |
| locate(substr , str ,start) | 返回子串substr在字符串str中第一次出現的位置 |
### 例子:預約編號為8位,不夠8位的前面填充0
```sql
SELECT
id,
position('許' IN baby_name),
locate('許', baby_name)
FROM
baby;
```