Обсуждение: Database Name - case sensitivity

Поиск
Список
Период
Сортировка

Database Name - case sensitivity

От
Edwin UY
Дата:
Hi,

Is there any way to rename a database?
I have some databases that are in upper case and some that are a mix of upper and lower case and I want to rename them all as lowercase.
For example, I have a TEST and a TestforBlah for example. These are just sample names.

Re: Database Name - case sensitivity

От
Guillaume Lelarge
Дата:
Hi,

Le mar. 21 janv. 2025 à 12:02, Edwin UY <edwin.uy@gmail.com> a écrit :
Hi,

Is there any way to rename a database?
I have some databases that are in upper case and some that are a mix of upper and lower case and I want to rename them all as lowercase.
For example, I have a TEST and a TestforBlah for example. These are just sample names.

You need to use double quotes. For example:

ALTER DATABASE "TestforBlah" RENAME TO testforblah;

Regards.


--
Guillaume.