标签: postgresql
从mysql迁移到postgreSQL注意点
1、auto_increment 转换成SERIAL。
2、concat 转换成 || 。
3、date_format 转换成 to_char。
4、ifnull 转换成 coalesce($1, $2)。
5、PostgreSQL 在 HAVING 子句不能使用别名。
select name, count(*) as score
from mytable
group by name
having score > 10
转换成
select name, count(*) as score
from mytable
group by name
having count(*) > 10
酒店管理系统数据库比较
酒店管理系统数据库比较
现代酒店管理系统都采用数据库软件,以下是常用数据库的比较:
品牌 | 平台 | 性能 | 价格 | 性价比 |
oracle | Win Linux Unix | 5 | 5 | 1 |
sybase | Win Linux Unix | 4 | 4 | 1 |
sqlserver | Win | 3 | 4 | 0.75 |
foxbase | Win | 1 | 2 | 0.5 |
mysql | Win Linux Unix | 4 | 0.1 | 40 |
Postgres | Win Linux Unix | 5 | 0.1 | 50 |
资深软件是最早在中国酒店2000+酒店管理系统软件里采用mysql数据库的酒店管理系统软件厂商,在2007年推出的国际版中更采用了Postgres数据库。为广大酒店管理系统用户进一步节省了费用。