Using the PostgreSQL native interface, create and execute a non-SELECT SQL statement that deletes a database table. The PostgreSQLDataSource data source configures a database connection to a PostgreSQL database.
This example uses a PostgreSQL database version 9.405 database and the libpq driver version 10.12.
Connect to the database using the data source name, user name, and password.
PostgreSQL native interface database connection, specified as a connection object.
sqlquery — SQL statement character vector | string scalar
SQL statement, specified as a character vector or string scalar. The SQL statement
can be any valid non-SELECT SQL statement.
The SQL statement can be a stored procedure that does not return any result sets.
For stored procedures that return one or more result sets, use the fetch
function.