Pregunta

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.

¿Fue útil?

Solución

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

Otros consejos

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top