postgresql
2013-11-10 00:15
260 查看
在postgresql中,build a database
然后create a table in the "name" database
then we have a empty database.
具体如何建立table, 阅读createdummy.sql的内容,查阅相关postgresql的语句
有了database以后,如何进入postgresql进行表的建立,遇到如下的错误:
psql: warning: extra command-line argument databaseusername ignored
-U表示的是database的用户名,但是这里的 用户仍然是ubuntu的用户名,而不是刚才建立的database的用户名。
后面的工作,
we will extract data in a bag file to the table by "extract_data_from_bag.py"
$ createdb name
然后create a table in the "name" database
$ psql -f ~/db/createdummy.sql -d name
then we have a empty database.
具体如何建立table, 阅读createdummy.sql的内容,查阅相关postgresql的语句
有了database以后,如何进入postgresql进行表的建立,遇到如下的错误:
$ psql -d name -U databaseusername
psql: warning: extra command-line argument databaseusername ignored
-U表示的是database的用户名,但是这里的 用户仍然是ubuntu的用户名,而不是刚才建立的database的用户名。
后面的工作,
we will extract data in a bag file to the table by "extract_data_from_bag.py"
相关文章推荐
- ubuntu(linux)下安装和调试postgresql(原创)
- python+flask+postgresql 学习
- PostgreSQL 聚合函数讲解 - 3 总体|样本 方差, 标准方差
- PostGreSQL8.0.0中文手册
- PostgreSQL学习手册-模式Schema(转)
- WebGIS(PostgreSQL+GeoServer+Open…
- postgresql 表分区的测试用例
- postgresql创建用户
- 【备忘】德哥PostgreSQL 数据库优化 培训视频【18集】
- windows qt连接postgresql(集锦)
- sysbench下面测试postgresql遇到IDENT authrntication failed for user postgres
- navicat premium出现PostgreSQL: column “rolcatupdate” does not exist error?
- 本机安装PostgreSQL8.4数据库
- postgresql 表空间创建、删除
- PostgreSQL 业务数据质量 实时监控 实践
- PostgreSQL表的行数统计
- PostgreSQL同步复制故障测试
- PostgreSQL 的基本操作
- postgresql进程结构
- PostgreSQL 中定义自己需要的数据类型