QuicksearchDisclaimerThe individual owning this blog works for Oracle in Germany. The opinions expressed here are his own, are not necessarily reviewed in advance by anyone but the individual author, and neither Oracle nor any other party necessarily agrees with them.
|
AutotaggerThursday, September 17. 2009Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
...oder einfach als ein einziges SQL Statement (%s immer durch das Tag ersetzen, Tag sollte vorher in lowercase gewandelt werden):
INSERT INTO serendipity_entrytags (entryid,tag) SELECT id, '%s' FROM serendipity_entries WHERE INSTR(lower(body), ' %s ') != 0 AND id NOT IN (SELECT entryid FROM serendipity_entrytags WHERE lower(tag) = '%s')
Ja ... da hast Du natuerlich recht, aber meine Version des scripts macht zwischen cursor1 und cursor2 noch ein paar sachen mit den Daten ... das fehlt im Script (ist c0t0d0s0.org spezifisch) und ginge so nicht mit nem SQL-Oneliner. Eigentlich ist der wordtagger naemlich ein Abfallprodukt ...
|
+1The LKSF bookThe book with the consolidated Less known Solaris Tutorials is available for download here
Web 2.0Contact
Networking xing.com My photos Buttons![]() This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Germany License
![]() ![]() ![]() Blog AdministrationDonateOkay, okay ... as several people have asked for it ... but you know my opinion.
|