-- errorid errorcode errordesc CREATE SCHEMA master; -- create CREATE TABLE master."EKYCErrorCode"( errorid SERIAL, errorcode varchar(20) NOT NULL, errordesc varchar, isactive boolean DEFAULT true, createdby varchar DEFAULT SESSION_USER, createddate timestamp without time zone DEFAULT now(), modifiedby varchar, modifieddate timestamp without time zone ); INSERT INTO master."EKYCErrorCode"(errorcode, errordesc) VALUES ('504', 'FetchAadhaarDetails_API_Error'), ('800', 'Invalid Biometric Data'), ('521', 'Invalid Finger Device'), ('997', 'Aadhaar Suspended'), ('K-100', 'Resident Authentication Failed'), ('2001', 'Internal Server Error :: NSDL Issue, Getting null response'), ('300', 'Bio Mismatch'), ('556', 'rdsVer is invalid and not part of certification registry'), ('K-999', 'Unknown Error'), ('2', 'PDF Generation Failed'), ('E-138', 'KYC XSD Validation Error'), ('E-106', 'KYC Request Signature Verification Failed'), ('E-149', 'Bad_Customer_Input'), ('K-955', 'Technical Error'), ('500', 'Internal Server Error'), ('561', 'Expired Pid Request'), ('7006', 'Internal Server Error :: UIDAI/NSDL Issue, Connect Timeout'), ('7003', 'ERROR : Invalid Aadhaar Number'), ('930', 'Technical Error at UIDAI - Biometric SDK error'), ('E-102', 'Request DB Auditing Failed'), ('E-555', 'Duplicate transaction id error'), ('515', 'Invalid VID Number in input.'), ('SUCCESS', ''), ('996', 'Aadhaar Cancelled'), ('400', 'FetchAadhaarDetails_API_Error'), ('1', 'Device is not registered in BFL Device Master.'), ('527', 'Invalid “mc” code under Meta tag'), ('408', 'Time Out'), ('557', 'dpId is invalid and not part of certification registry'), ('527', 'Invalid "mc" code under Meta tag'), ('408', 'UIDAI Timeout'), ('937', 'Technical Error at UIDAI - Digital signature error'), ('330', 'Biometrics Locked'), ('558', 'Invalid dih'), ('K-515', 'Invalid VID used.'), ('811', 'Missing CIDR Biometric'), ('933', 'Technical Error at UIDAI - BI Related Technical Error'), ('994', 'Error code not found in db'), ('200', 'NA'), ('7005', 'Exception'), ('562', 'Future Timestamp Value'), ('k-517', 'VID used is expired'), ('994', 'Aadhaar deactivated due to deceased status'), ('K-540', 'Invalid KYC XML'), ('7004', 'Internal Server Error :: UIDAI/NSDL Issue, Read Timeout'), ('931', 'Device vender is not whitelisted at UIDAI'), ('563', 'Duplicate Auth Request'), ('k-998', 'Invalid Aadhaar Number/Virtual ID'), ('822', 'Invalid value in the “bs” attribute of “Bio” element within “Pid”.'), ('k-531', 'Invalid Sub-AUA'), ('E-132', 'KYC Request Signature Verification Error'), ('331', 'Aadhaar locked by Aadhaar number holder'), ('932', 'Technical Error at UIDAI - Audit error'), ('E-149', 'Aadhaar number / Virtual ID validation Failed'), ('935', 'Technical Error at UIDAI - Skey store error'), ('E-105', 'KYC XSD Validation Failed'), ('822', 'Invalid value in the "bs" attribute of "Bio" element within "Pid".'), ('300', 'Bad_Customer_Input'), ('E-114', 'Unparsable KYC Response XML'); SELECT * FROM master."EKYCErrorCode";
Write, Run & Share PostgreSQL queries online using OneCompiler's PostgreSQL online editor and compiler for free. It's one of the robust, feature-rich online editor and compiler for PostgreSQL. Getting started with the OneCompiler's PostgreSQL editor is really simple and pretty fast. The editor shows sample boilerplate code when you choose database as 'PostgreSQL' and start writing queries to learn and test online without worrying about tedious process of installation.
PostgreSQL is a open source relational database system and is also knows as Postgres.
CREATE command is used to create a table, schema or an index.
CREATE TABLE table_name (
column1 datatype,
column2 datatype,
....);
ALTER command is used to add, modify or delete columns or constraints from the database table.
ALTER TABLE Table_name ADD column_name datatype;
TRUNCATE command is used to delete the data present in the table but this will not delete the table.
TRUNCATE table table_name;
DROP command is used to delete the table along with its data.
DROP TABLE table_name;
RENAME command is used to rename the table name.
ALTER TABLE table_name1 RENAME to new_table_name1;
INSERT Statement is used to insert new records into the database table.
INSERT INTO table_name (column1, column2, column3, ...) VALUES (value1, value2, value3, ...);
Select statement is used to select data from database tables.
SELECT column1, column2, ...
FROM table_name;
UPDATE statement is used to modify the existing values of records present in the database table.
UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
DELETE statement is used to delete the existing records present in the database table.
DELETE FROM table_name where condition;