我的数据库是postgresql.我将参数设置如下:
parameters: database_driver: pdo_pgsql database_host: 127.0.0.1 database_port: null database_name: sandBox database_user: postgres database_password: postgres mailer_transport: smtp mailer_host: 127.0.0.1 mailer_user: null mailer_password: null locale: en secret: ThisTokenIsNotSoSecretChangeIt
问题是我不知道如何查询Postgresql中的现有表.我对MysqL没有问题,但在Postgresql中我实际上不知道该怎么做.
编辑:
# app/config/parameters.yml parameters: database_driver: pdo_MysqL database_host: localhost database_name: test_project database_user: root database_password: password
然后我创建实体来处理我的数据.
EDIT2:
Tables are already created in postgresql. The connection part is done. I’ve done it successfully. What I want to do Now is to create entities based on existing tables. I think Now it’s much more clear and no one is on the dark side.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。