欄位及變數命名
命名不得使用保留字、關鍵字,如:(按字母排序)
all、alter、and、any、as、avg、
between、by、commit、contains、count、cross、create、cursor、
declare、delete、desc、distinct、drop、
except、exec、exists、
false、foreign、from、full、
grant、group、having、
in、inner、insert、intersect、into、
join、key、left、like、lower、
max、min、not、null、
on、or、order、outer、primary、
references、revoke、rollback、
schema、select、set、some、sort、substring、sum、
talbe、true、
union、unique、unknown、update、upper、user、where
另外也避免使用不雅之單字,如:
fuck、ass、shit,gy,dead開頭
為求資料庫執行之穩定,命名時不得使用中文。
統一命名規則
金額部分,建議後置mon字樣
例:
1.月支薪俸
month+mon→monthmon
2.房屋貸款
house+mon→housemon
文字變數,建議前置ls_字樣
例:
1.姓名
ls_+name→ls_name
2.地址
ls_address→ls_address