Hi,
i'm just going nuts trying to fugure out why my sql-statement isn't working. Perhaps i'm just blind....
I've got the following two tables:
In the table "link_keyword" i'm trying to update the "id_keyword". It should contain the number (id_keyword in keyword) of the corresponding Keyword (which is now stored in "tmp_keyword")....
Perhaps there are jsut too many keywordss , but i don't know what's wrong with my sql-statement:
i'm just going nuts trying to fugure out why my sql-statement isn't working. Perhaps i'm just blind....
I've got the following two tables:
Code:
mysql> describe keyword;
+------------+
| Field | Type
+------------+
| id_keyword | int(10)
| schlagwort | varchar(255)
| sprache | char(3)
+----------------+
mysql> describe link_keyword;
+----------------+
| Field | Type
+----------------+
| id_link_keyword | int(10)
| id_keyword | int(10)
| projekte_nr | int(10)
| stamp | timestamp(14)
| tmp_keyword | text
| tmp_fingerprint | text
+----------------+
In the table "link_keyword" i'm trying to update the "id_keyword". It should contain the number (id_keyword in keyword) of the corresponding Keyword (which is now stored in "tmp_keyword")....
Perhaps there are jsut too many keywordss , but i don't know what's wrong with my sql-statement:
Code:
UPDATE link_keyword, keyword SET link_keyword.id_keyword = keyword.id_keyword WHERE keyword.schlagwort = "Frühindikatoren" AND link_keyword.id_link_keyword = "6"