Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [surfsafely] SQL query to assign category

Quote Reply
Re: [surfsafely] SQL query to assign category In reply to
That would be a bit complicated since the Category IDs are stored in the CatLinks intersecting table.

What you could try doing is the following:

1) Only import the LINKID into the CatLinks table.

--> if you are successful, then execute the following SQL Statement in the SQL Monitor option in MySQLMan:

Quote:

UPDATE CatLinks SET CategoryID = 'someid' WHERE CategoryID = ''


I am not sure if a '0' is inserted or if that column is left as an empty string, which if it does, then the above SQL statement would work.

Or you could copy the LinkIDs into another spreadsheet and then add another column called CategoryID and add in a default value in that column for all records...then IMPORT the spreadsheet into your CatLinks table in your LINKS database.
========================================
Buh Bye!

Cheers,
Me

Last edited by:

AnthroRules: Oct 14, 2001, 8:33 PM
Subject Author Views Date
Thread SQL query to assign category surfsafely 2389 Oct 14, 2001, 7:48 PM
Post Re: [surfsafely] SQL query to assign category
Stealth 2188 Oct 14, 2001, 8:30 PM
Thread Re: [surfsafely] SQL query to assign category
Alex 2144 Oct 15, 2001, 8:51 AM
Post Re: [Alex] SQL query to assign category
surfsafely 2143 Oct 15, 2001, 5:32 PM