Pergunta

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.

Foi útil?

Solução

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

Outras dicas

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 em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top