Difference between revisions of "PostgreSQL Adapter-nexj/scripts"

From CDOT Wiki
Jump to: navigation, search
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Working with scripts==
+
{{Admon/obsolete}}
{{NexJ_Express Index}}
+
 
===postgresql_Setup.sql===
+
<big><big> PostgreSQL Adapter for NexJ - Working with Scripts </big></big>
 +
 
 +
==postgresql_Setup.sql==
 
: Through the process in postgresql_setup.sql, the database was created, initialized and tested:
 
: Through the process in postgresql_setup.sql, the database was created, initialized and tested:
 
:: A database called 'test is created in PostgreSQL : <code> CREATE DATABASE test </code>
 
:: A database called 'test is created in PostgreSQL : <code> CREATE DATABASE test </code>

Latest revision as of 20:54, 26 January 2014

Important.png
This page may be obsolete.
It contains historical information.

PostgreSQL Adapter for NexJ - Working with Scripts

postgresql_Setup.sql

Through the process in postgresql_setup.sql, the database was created, initialized and tested:
A database called 'test is created in PostgreSQL : CREATE DATABASE test
To create a user along with password: CREATE USER test WITH PASSWORD 'test';
Login to the database 'test' with username 'test': psql -U test test
Create a Schema called 'test' inside the database 'test' with particular owner 'test': CREATE SCHEMA test AUTHORIZATION test;
Create a table called 'Mutex' with primary key: CREATE TABLE test.Mutex(id INT PRIMARY KEY);
Insert a value into the primary key: INSERT INTO test.Mutex(id) VALUES (1);