or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
SQL table
tags:
計畫
SQL 格式內容
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →4/19 刪除 PLATE TABLE
Regular expression
顏色車型table
車牌
REG
AAA-8888
:[A-Z]{3}\-[0-9]{4}
AA-88888
:[A-Z]{2}\-[0-9]{5}
舊式
AA-88(88)
:[A-Z0-9]{2}\-[0-9A-Z]{2,4}
AAA-888
|888-AAA
|… :[A-Z0-9]{3}\-[A-Z0-9]{3}
888-AA
|8888-AA
:[A-Z0-9]{3,4}\-[A-Z0-9]{2}
Event
old version
4/19
plateNum NVARCHAR(10) , – 車牌
carColor INT, – 車色
carType INT, – 車型
key : plateNUM
5/3
AUTOINCREMENT
5/6
6/30 新增 INDEX(plateNum、startTime)
.indexes
CREATE INDEX plateNumIndex ON EVENT (plateNum);
Run Time: real 14.708 user 0.707784 sys 1.030433
Run Time: real 0.395 user 0.366702 sys 0.027766
CREATE INDEX startTimeIndex ON EVENT (startTime);
11/10 UNIQUE
12/13
Add insertTime to record the creating time of every single capture.
11/10 UNIQUE
Regular expression
cameraID (ex, 63000_10901_00_123456_03)
縣市編號 : 5 碼,參考內政部戶政司公告之縣市代碼
建置年份 : 3 碼,民國年
當年建置期數: 2 碼,不足碼補 0。
監視器樣態: 2 碼,全景監視器 00、車道監視器 01、車道車辨監視器 02
監視器流水號: 6 碼,不足碼補 0。
監視器影像儲存處: 2 碼,路口機箱00、派出所 01、分局 02、警察局 03、租賃機房 04
Camera ID參考資料
63000_10901_00_123456_03
REG :
[0-9]{5}\_[0-9]{3}[0-9]{2}\_0[0-2]\_[0-9]{6}\_0[0-4]
改成流水號
不要有限制(提示:不要打特殊符號)
ex:
2023-03-15 10:10:10
REG :
[0-9]{4}\-[01][0-9]\-[0-3][0-9]\ [0-2][0-9]\:[0-5][0-9]\:[0-5][0-9]
4/19
Camera
old camera table
4/19 刪除 address
5/6
//0805改為一個table,且舊路口位址存在address
Policestation
Regular expression
cameraName :
Camera123456
REG :
Camera[0-9]{6}
precinct
REG :
[\u4e00-\u9fa5]+分局
policeStation
REG :
[\u4e00-\u9fa5]+派出所
intersection
REG :
[\u4e00-\u9fa5]+路
Status 0:「正常」、1「異常」、2「報修」
precinct:

第四碼表示第幾分局 ex:1->第一分局
(若沒有則打0)
policeStation:
依照下表號碼
南投警局代碼
district
REG :
[\u4e00-\u9fa5]+
警局機關分局的資訊應該是透過ID傳送
資料庫我們儲存的是警局單位的中文名字
11/10 camera_split.sh
awk
將資料分開(逗號),並且取得所需資訊,針對CAMERA.csv
/home/louise/1109/camera_split.sh
ErrorCode
old errorcode
資料庫error設計
11/11更改log名字成Errormap
存Errorcode
Errorcode map
Log
11/11 新增Log table
存指令錯誤訊息
資料庫error設計
Search
old
11/11修改
Sqlite before july
3/29 修改
5/3 資料庫修改
AUTOINCREMENT
PoliceCase
11/11修改
案由類別
PERSON
修改
4/26 修改
新增
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →plateNum NVARCHAR(10) , – 車牌
carColor INT, – 車色
carType INT, – 車型
刪除 :
key : plateNUM
3. 刪除 CAMERA TABLE 中的 addres(欄位)
4. EVENT
修改 查詢人 ID searchID-> personID
刪除 column : 查詢人名稱、案由
新增 TABLE TCASE、PERSON
CAMERA : 878
TCASE : 100 million
PERSON : 999
SEARCH : 100 million
EVENT : 0 (error : disk 已滿)
有寫一個可以匯入特定筆數程式
5/3 修改