zoukankan      html  css  js  c++  java
  • USE “schema_name” in PostgreSQL

    http://timmurphy.org/tag/mysql/

    http://timmurphy.org/2009/11/17/use-schema_name-in-postgresql/

     ====================================

    For those moving from MySQL to PostgreSQL, there are a few differences which you will need to get used to.  One of these differences is the USE command, used to select the schema to select tables, views, etc from.

    PostgreSQL does not have the USE command.  Instead, you can use:

    SET search_path TO [schema_name]

    For example, if we have a schema mySchema in which we are querying the person table, instead of SELECT * FROM mySchema.person, we can simply type SET search_path TO mySchema and use SELECT * FROM person for all subsequent queries.  mySchema will remain the default schema until the next SET command is issued, or the connection is closed.

  • 相关阅读:
    DFS总结
    cmake-make-gcc(g++)
    std::function
    basic_string定义的相关string函数
    欧拉路径和欧拉回路
    正则表达式
    C++ Data Types
    关于uniapp的插槽
    关于微信H5 分享配置
    h5请求的时候总是会跨域
  • 原文地址:https://www.cnblogs.com/kungfupanda/p/5503862.html
Copyright © 2011-2022 走看看