![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
insert into "T_OEPNV_HST_LIN" ("HST_NR", "LIN_U_NAME", "LIN_KAT", "LIN_NAME_O", "LIN_NAME_I") values ('10001', 'Stadtwerke Marburg GmbH', 'Bus', 'C', '11103'); does not work while select * from "T_OEPNV_HST" where "HST_NR"='10001'; returns HST_ID | HST_NR | HST_NAME | HST_COORD --------+--------+----------+------------------------------------------ 23555 | 10001 | Aff?ller | SRID=31467;POINT(3483856.148 5632168.48) (1 Zeile) |
#2
| |||
| |||
|
|
"HST_NR" varchar(10) references "T_OEPNV_HST" on update cascade, |
#3
| |||
| |||
|
|
CREATE TABLE "T_OEPNV_HST" ( "HST_ID" serial, "HST_NR" varchar(10), ... CONSTRAINT "T_OEPNV_HST_pkey" PRIMARY KEY ("HST_ID"), CONSTRAINT "T_OEPNV_HST_unr" UNIQUE ("HST_NR"), ... CREATE TABLE "T_OEPNV_HST_LIN" ( "HST_NR" varchar(10) references "T_OEPNV_HST" on update cascade, ); So, I can't understand, why I get the error, that I can't insert the data into "T_OEPNV_HST_LIN" because there is no HST_NR='10001' in "T_OEPNV_HST". |
![]() |
| Thread Tools | |
| Display Modes | |
| |