Question

I need to delete my schema when i created during table creation but i no need to disturb tables inside that schema so please suggest me to delete my schema without deleting tables present inside that schema.

Était-ce utile?

La solution

In Mysql a schema is the same as a database. Removing the schema removes the database, and also your objects (ie tables)

Autres conseils

you can not delete schema without deleting underlying tables, because schema is logical container which holds database objects like table, procedure etc..

you want to do like: breaking the glass(filled with water) without flowing water, which is impossible,

best practice for your problem would be RENAME your schema. so it feels like schema is no longer available, but you can access it via different name.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top