You are here : Cmysql/mysql.hmysql_drop_db

mysql_drop_db() - mysql/mysql.h

 Drops the database named by the db parameter.dbThis function is deprecated. It is preferable to use
        mysql_query() to issue an SQL
        DROP DATABASE statement instead.mysql_query()mysql_query()DROP DATABASEDROP DATABASE


Syntax

int mysql_drop_db(MYSQL *mysql, const char
        *db)


Example

if(mysql_drop_db(&mysql, "my_database"))
  fprintf(stderr, "Failed to drop the database: Error: %s\n",
          mysql_error(&mysql));


Output / Return Value

 Zero for success. Nonzero if an error occurred.


Limitations


Alternatives / See Also


Reference