ask for help !!! (emergency case)
От | Jaruwan Laongmal |
---|---|
Тема | ask for help !!! (emergency case) |
Дата | |
Msg-id | 002c01c09d89$ce591980$6d9a96cb@ntl обсуждение исходный текст |
Список | pgsql-hackers |
dear all I hava 2 problems about view 1. i can't insert into view 2. i can't create view with union I try to insert into view as following create table t1 (id int,name varchar(12) check(id<=10)); create table t2 (id int,name varchar(12) check(id>10)); create view v1 as select * from t1,t2; insert into v1 values(1,'wan1'); insert into v1 values(12,'wan12'); it does not show any problem but it doen't have data in table t1 and table t2 ------------------------------ if i want to distribute database into 2 database servers and i want to insert into database1.table1 when database1.table1.id <=100 and i want to insert into database2.table2 when database2.table2.id >100 How can i do that with create view .........as .......union all ............ and insert into view ,afterthat view is check condition and distrubute data into diferent database up on condition and How to configure the postgres sql server? If you have idea or example for solving this problem , pls help me thank you so much , i'm looking forward to seeing your response. Regards,
В списке pgsql-hackers по дате отправления: