Category: database
-
Data integrity is a fundamental component of information security
https://www.veracode.com/blog/2012/05/what-is-data-integrity
-
How to write a program to connect to a PostgreSQL server ? (program may not be perfect )
#include <stdio.h> #include <stdlib.h> #include <postgresql/libpq-fe.h> int main(int argc, char **argv) { const char *conninfo; const char *serverversion; PGconn *conn; const char *paramtext = “server_version”; conninfo = “hostaddr = 127.0.0.1 dbname = test user = earl password = bigshot”; conn = PQconnectdb(conninfo); if ( PQstatus(conn) != CONNECTION_OK ) { printf(“Unable to establish connection: %s”,PQerrorMessage(conn)); return […]