Autor Beitrag
Melcho
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Fr 12.03.04 10:03 
Ich habe noch ein Problem.
Es gibt eine Query in der ein Sql Befehl steht.
Ich will mit dem Navigator ein paar Datensätze löschen.
Also muss ich dir Eigenschaft RequestLive auf true setzten.
Aber wenn ich das tute kommt eine Fehlermeldung
wo drinne steht das die Tabelle Schreibgeschütz ist
aber ohne RequestLive true geht alles.

Also woran liegt das bitte helft mir.

_________________
PCP saved my life
tmc2004
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

zuviele
D7,D8
BeitragVerfasst: Fr 12.03.04 10:13 
Und wo genau ist dein Probelem,wenn er dann alles macht?

Gruß
tmc

_________________
it's not a bug it's a feature
Melcho Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Fr 12.03.04 10:16 
Na gliech wenn ich das Programm starte
kommt der Fehler.

_________________
PCP saved my life
tmc2004
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

zuviele
D7,D8
BeitragVerfasst: Fr 12.03.04 10:17 
Schon mal mit einzelstart durch wo der Fehler auftritt?

Gruß
tmc

_________________
it's not a bug it's a feature
Melcho Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Fr 12.03.04 10:20 
Was meinst du tmc ?

_________________
PCP saved my life
tmc2004
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

zuviele
D7,D8
BeitragVerfasst: Fr 12.03.04 10:22 
Programm statt mit F9 oder Play mit F8 in Einzelstart ausfürhren dann kannst du genau sehen wo der Fehler auftritt. Bei welcher stelle im Code.

Gruß
tmc

_________________
it's not a bug it's a feature
Melcho Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Fr 12.03.04 10:27 
JA das liegt an der SQL abfrage die Lautet

SELECT user_data.user_name, customer_data.* From customer_data, user_data where user_data.user_id=customer_data.customer_id

hast du noch ne Idee?

_________________
PCP saved my life
tmc2004
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

zuviele
D7,D8
BeitragVerfasst: Fr 12.03.04 10:34 
ausblenden Quelltext
1:
SELECT user_data.user_name, customer_data.* From customer_data, user_data where user_data.user_id=customer_data.customer_id					


So kann das nicht gehen

So frei aus dem Kopf sollte es so gehen:
ausblenden Quelltext
1:
2:
SELECT user_data.user_name, customer_data.*
FROM customer_data INNER JOIN user_data ON user_data.user_id = customer_data.customer_id


Gruß
tmc 8)

_________________
it's not a bug it's a feature
Melcho Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Fr 12.03.04 10:40 
Danke für die Lösung aber
es geht immer noch nicht
meine Kumpel sagt es muss was mit inner Join
sein deins ist ja mit inner join hast du vielleicht noch ne Lösung ?

_________________
PCP saved my life
tmc2004
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

zuviele
D7,D8
BeitragVerfasst: Fr 12.03.04 10:43 
Ich weiß jetzt natürlich nicht wie deine Tabelle aussieht. Mit welcher Datenbank arbeitest du? Paradox,Access,mysql...


Gruß
tmc

_________________
it's not a bug it's a feature
Melcho Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Fr 12.03.04 10:46 
Wir arbeiten mit MySql.

_________________
PCP saved my life
tmc2004
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 140

zuviele
D7,D8
BeitragVerfasst: Fr 12.03.04 10:51 
Da kenn ich mich jetzt nicht so aus? Da gibt es doch bestimmt einen Abfrageedittor oder?

Da kannst du dann deine Abfrage zusammenstelln und sie dir dann in sql anzeigen lassen.


Gruß
tmc

_________________
it's not a bug it's a feature
Melcho Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 145

XP

BeitragVerfasst: Fr 12.03.04 11:04 
Nagut Tmc vielen dank
für deine Hilfe.

_________________
PCP saved my life
atarigold
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 84

WIN XP, Linux 2.4
D7, Delphi 2006 Prof
BeitragVerfasst: Mo 15.03.04 16:28 
RequestLive funktioniert mit MySQL wenn sich die Abfrage auf eine Tabelle bezieht.

Es dürfen also keine Joins verwendet werden. Das ist bei anderen DBMS auch so.
Ist auch logisch, da beim Löschen die Information an die DBMS fehlt, aus welcher Tabelle des Joins die Datensätze eigentlich gelöscht werden sollen.

Vielleicht kann man das im Einzelfall mittels Trigger umgehen, habe ich nie ausprobiert.



Schönen G´ruß