I want to create a table in database A from several tables in database B. I went to the PostgreSQL's documentation here to figure out how and the documentation for the command is decorated with brackets, bars, curly brackets, parenthesis, bold words and all-caps words, etc.
What do all of these symbols denote about the command and could somebody please show how I would read the documentation to determine what the correct syntax for creating a table in database A from a select query on a table in database B.
The internet has been a great resource for basic PostgreSQL formulas to copy and paste, but I'd like to move beyond copying and pasting formulas that just magically work.
{ a | b }means a or b,[ stuff ]means that stuff is optional, bold is for something you have to fill in, fixed width is for literal parts of the syntax. postgresql.org/docs/current/static/notation.htmlCREATE TABLE ... AS SELECT ...