Skip to content

create table without using psql #1964

Description

@pcouas

Hello

Can i create an postgres table without using psql
Currentl i have two step ?
echo =========================
echo STEP 1a - EXPORT TABLE CONFIG
rem call ora2pg -c %CONFIG% -t TABLE -o tables.sql -s scgp_refonte2026
call ora2pg -c %CONFIG% -t TABLE -o %FILE%
IF %ERRORLEVEL% NEQ 0 (
echo ERROR during TABLE export
exit /b 1
)

echo STEP 1b - PHYSICALLY CREATE TABLE
call C:\postgresql-18\bin\psql -h %PGHOST% -p %PGPORT% -d %PGDBNAME% -f %FILE%

Can i have same result in one single command ?
Regards

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions