spec
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
spec [2012/02/27 07:58] – [Syntax of FwSQL] wuyw | spec [2012/03/10 15:08] (current) – old revision restored wuyw | ||
---|---|---|---|
Line 55: | Line 55: | ||
- Support transaction | - Support transaction | ||
- Logger and roll back | - Logger and roll back | ||
- | - Supplementary | + | - Supplementary |
- Syntax | - Syntax | ||
- STRING & DATE | - STRING & DATE | ||
- Any CHAR, VARCHAR, DATETIME or TIMESTAMP starts and ends with a '. | - Any CHAR, VARCHAR, DATETIME or TIMESTAMP starts and ends with a '. | ||
- | - AUTO INCREMENT | + | - AUTO_INCREMENT |
- | - One table can have one column to be AUTO INCREMENT, and this column MUST BE the PRIMARY KEY. | + | - One table can have one column to be AUTO_INCREMENT, and this column MUST BE the PRIMARY KEY. |
- AUTO INCREMENT column MUST BE INT. | - AUTO INCREMENT column MUST BE INT. | ||
- | - When inserting a row, value in AUTO INCREMENT | + | - When inserting a row, value in AUTO_INCREMENT |
- | - Of couse, | + | - Of couse, |
- INSERT | - INSERT | ||
- If user used INSERT INTO table name VALUES (...), ALL elds should be specied. | - If user used INSERT INTO table name VALUES (...), ALL elds should be specied. | ||
Line 69: | Line 69: | ||
- TIMESTAMP | - TIMESTAMP | ||
- When inserting or updateing, if the value of this eld were not given,it means current time. | - When inserting or updateing, if the value of this eld were not given,it means current time. | ||
- | |||
- | ===== Misc ===== | ||
- | **Version** 4.1 | + | ==== Some Clarication ==== |
- | **Date Created** 2012-2-25 | + | |
- | + | - You should code very thing by yourself. However, taking advantage of some code-generation tool like JFLEX or JavaCup is allowed and encouraged. | |
- | **Authors** | + | - It's NOT required to do arithmetic operation on DECIMAL column. In addition, you can set arbitrary restrict on CHAR(), DECIMAL() and VARCHAR(), as long as it's reasonable. For example, the length of VARCHAR can't exceed 4000. You should also write these restrict in document. |
- | + | - You are allowed to keep metadata of table / database (or something like that) in memory (outside buer), since they are not very big. What you have to load into buer are records (in heaple) and B+ trees. | |
- | * 02-ACMer | + | |
- | * Li Lei < | + | |
- | * Yang Linji < | + | |
- | * Zhang Yaodong < | + | |
- | | + | |
- | * Ma Rong < | + | |
- | * Zhou Muxin < | + | |
- | * Qian Feng < | + | |
- | * Qu Wentao < | + | |
- | * 04-ACMer | + | |
- | * Li Mu <limu.cn@gmail.com> | + | |
- | * Lian Xiaochen < | + | |
- | * Sun Xiaorui < | + | |
- | | + | |
- | * Han Wei < | + | |
- | * Tian Yuan < | + | |
- | * Zhang Kang <jobo.zh@gmail.com> | + | |
- | | + | |
- | * Chen Xiangru < | + | |
- | * Chen Tianqi < | + | |
- | * Zhu Yihe < | + | |
- | * 07-ACMer | + | |
- | * Sheng Meilun < | + | |
- | * Wu Chenyang < | + | |
- | * 08-ACMer | + | |
- | * Wu Yangwei < | + | |
- | * Sun Ruihua < | + | |
- | * Pan Ye <panye.sjtu@gmail.com> | + | |
===== Syntax of FwSQL ===== | ===== Syntax of FwSQL ===== | ||
Line 122: | Line 92: | ||
*DROP TABLE // | *DROP TABLE // | ||
| | ||
- | | + | |
- | | + | |
| | ||
Line 146: | Line 116: | ||
- Select | - Select | ||
- | *SELECT [DISTINCT] // | + | *SELECT [DISTINCT] // |
- | *// | + | *// |
- | *// | + | *// |
- | *// | + | *// |
- | *// | + | *// |
*// | *// | ||
- | *// | + | *// |
- | *// | + | *// |
*// | *// | ||
- | *// | + | *// |
- | *// | + | *// |
*// | *// | ||
+ | |||
+ | ===== Misc ===== | ||
+ | |||
+ | **Version** 4.1 | ||
+ | |||
+ | **Date Created** 2012-2-25 | ||
+ | |||
+ | **Authors** | ||
+ | |||
+ | * 02-ACMer | ||
+ | * Li Lei < | ||
+ | * Yang Linji < | ||
+ | * Zhang Yaodong < | ||
+ | * 03-ACMer | ||
+ | * Ma Rong < | ||
+ | * Zhou Muxin < | ||
+ | * Qian Feng < | ||
+ | * Qu Wentao < | ||
+ | * 04-ACMer | ||
+ | * Li Mu < | ||
+ | * Lian Xiaochen < | ||
+ | * Sun Xiaorui < | ||
+ | * 05-ACMer | ||
+ | * Han Wei < | ||
+ | * Tian Yuan < | ||
+ | * Zhang Kang < | ||
+ | * 06-ACMer | ||
+ | * Chen Xiangru < | ||
+ | * Chen Tianqi < | ||
+ | * Zhu Yihe < | ||
+ | * 07-ACMer | ||
+ | * Sheng Meilun < | ||
+ | * Wu Chenyang < | ||
+ | * 08-ACMer | ||
+ | * Wu Yangwei < | ||
+ | * Sun Ruihua < | ||
+ | * Pan Ye < | ||
+ |
spec.1330329505.txt.gz · Last modified: 2012/02/27 07:58 by wuyw