Search
 
SCRIPT & CODE EXAMPLE
 

SQL

psql connect

psql -d gpdatabase -h master_host -p 5432 -U gpadmin
Comment

psql connect to database

psql -d postgres -h [host] -p [port] -U [user]
Comment

postgresql connect to database

psql -d geo -h 192.168.1.12 -p 5432 -U supervisor

// geo is a database and supervisor is a user
// Once on postgres you can change the database by typing

c postgres
Comment

how to connect to postgres

psql dbname postgres
Comment

connect to postgresql

bash-4.2$ psql -h <hostname or ip address> -p <port number of remote machine> -d <database name which you want to connect> -U <username of the database server>
Comment

Postgresql connect

import sqlalchemy

engine = sqlalchemy.create_engine('postgresql://username:password@localhost/mydatabase')
Comment

connect to database for postgresql

for connect to database write: c databaseName
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle chain rules 
Sql :: Write an SQL query to fetch worker names with salaries = 50000 and <= 100000. 
Sql :: select value from previous row in postgresql 
Sql :: oracle get ddl 
Sql :: how to export/import a mysql database via ssh 
Sql :: create foreign key postgres 
Sql :: how to get nth number in sql 
Sql :: sql query to create table in database 
Sql :: delete from table sql 
Sql :: sql duplicate a table with data 
Sql :: How to search for a String in all Columns in all tables in SQL Server Database 
Sql :: 0 
Sql :: on update current_timestamp jpa 
Sql :: add primary key to database sql 
Sql :: sql pivot rows to columns 
Sql :: how to find top 3 salary in sql 
Sql :: print boolean in plsql 
Sql :: oracle find foreign key dependencies 
Sql :: case statement in select query in sql 
Sql :: select other columns with distinct 
Sql :: sqlalchemy get ids 
Sql :: match in sql server 
Sql :: select indexes postgres 
Sql :: enum in sql server 
Sql :: group by max date 
Sql :: oracle ora-00054 how to unlock 
Sql :: how to select from mssql 
Sql :: hour must be between 1 and 12 
Sql :: mysql range of dates overlap 
Sql :: limit and offset in stored procedure mssql 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =