I’ve a script:
CREATE DATABASE ahop
GO
CREATE TABLE shop.dbo.TABLE1 (
);
CREATE TABLE shop.dbo.TABLEN (
);
But it doesn’t seem to work in PostgreSQL. Error message: “error near GO”. I dont get it, how to create scripts in Postgresql?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Replace the T-SQL batch terminator
GOwith the PostgreSQL batch terminator;.GOis not supported in postgreSQLyou need to connect on the database using
\. eg,