Re: Compare two Data bases Structure

Поиск
Список
Период
Сортировка
От Isaac Dover
Тема Re: Compare two Data bases Structure
Дата
Msg-id AANLkTimYuRi-OjA316ycVm5rT4no7Rkn540nCCmJz5J8@mail.gmail.com
обсуждение исходный текст
Ответ на Compare two Data bases Structure  (manuel antonio ochoa <manuel8aalfaro@gmail.com>)
Список pgsql-sql
Select from information_schema.columns and full outer join it again on the table and column names, then just look for nulls on either side. You'll need to alias the left and right views differently. I'm assuming that the dbs are next to each other in the same installation. Once the base query is working, you can filter further on the column types. It's pretty simple as long as you understand joins.

On Thu, Feb 24, 2011 at 10:30 AM, manuel antonio ochoa <manuel8aalfaro@gmail.com> wrote:

How can I do that ? I dont know how to use the query !! ?


2011/2/24 Isaac Dover <isaacdover@gmail.com>

As an alternative to the other tools - I've had luck using a simple query that uses information schema.

> How Can I do to compare two structures of data bases ?
>
> DBA != DBB I need wich functions and wich tables are not equals
>
> thnks


В списке pgsql-sql по дате отправления:

Предыдущее
От: Isaac Dover
Дата:
Сообщение: Re: Compare two Data bases Structure
Следующее
От: "Jacques Lebrun"
Дата:
Сообщение: Problem with serial counters