I have a strange problem.
I thought the following was a simple query:
select count(*) from adresse, adr_anfrage
where adresse.kontonr = adr_anfrage.kontonr
This query gave me zero, even though there are only two records in table adr_anfrage and these two records (kontonr) exist in adresse. Table adresse has 150K records and field kontonr is one of the primary keys in adresse.
All my other similar queries work just fine. If it matters, I'm using MySQL 4.1.13.
One thing you should probably know, though, the records in adr_anfrage come from an CSV file format
(uploaded from an PHP script, my version is 4.3.10).
Can somebody tell me what's wrong? Thanks!
Andre
I thought the following was a simple query:
select count(*) from adresse, adr_anfrage
where adresse.kontonr = adr_anfrage.kontonr
This query gave me zero, even though there are only two records in table adr_anfrage and these two records (kontonr) exist in adresse. Table adresse has 150K records and field kontonr is one of the primary keys in adresse.
All my other similar queries work just fine. If it matters, I'm using MySQL 4.1.13.
One thing you should probably know, though, the records in adr_anfrage come from an CSV file format
(uploaded from an PHP script, my version is 4.3.10).
Can somebody tell me what's wrong? Thanks!
Andre