#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    Chennai, India
    Posts
    69
    Rep Power
    12

    Unhappy To run a script to create tables, etc...


    Hi

    Can I run a script to create tables from psql ?? If so, how ??

    I run

    Code:
    @create_table.sql
    in oracle, what is the parallel in PostgreSQL ?

    Thanks & Regards.
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2002
    Posts
    56
    Rep Power
    12
    \i FILENAME

    example

    \i /home/psql/dev.sql

    Use \? to see available commands.
    Casuistry Agnostic
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2002
    Location
    Chennai, India
    Posts
    69
    Rep Power
    12
    Hi

    Thanks for your kind help.

    Regards.

IMN logo majestic logo threadwatch logo seochat tools logo