Hướng dẫn php postgresql insert query
INSERT CommandThis document discusses how to insert data into a table using PostgreSQL INSERT command. We have also covered how to do the same using PHP-PostgreSQL.KJVQCSV69JFX Usage Following is the usage of PostgreSQL INSERT command for inserting data into a single row of a PostgreSQL table.
Where table_name is the associated table, column1, 2, 3 are column names and value 1, 2, 3 are values to be inserted. Insert single row Structure of the table Following is the structure of the table where we will insert data. Command to insert data View data This is from where you can check data using PgAdmin III. This is the data we have entered using INSERT command - Insert multiple rows Here is the command to insert multiple rows in a PostgreSQL database.
Insert data: PHP-PostgreSQL The following example code is to insert data into the 'book' table using PHP. Assume that the name of the file saved with this code is insert.php.
|