(No version information available, might only be in Git)

Session::createSchemaCreate new schema


public mysql_xdevapi\Session::createSchema ( string $schema_name ) : mysql_xdevapi\Schema

Creates a new schema.

Liste de paramètres


Name of the schema to create.

Valeurs de retour

A Schema object on success, and emits an exception on failure.


Exemple #1 mysql_xdevapi\Session::createSchema() example

$sess mysql_xdevapi\getSession($uri);

try {

    if (
$schema $sess->createSchema('fruit')) {
"Info: I created a schema named 'fruit'\n";
} catch (
Exception $e) {



L'exemple ci-dessus va afficher quelque chose de similaire à :

Info: I created a schema named 'fruit'
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top