CREATE TABLE Profils ( profil_id int NOT NULL , nick char(255) , password char(255) , lastseen datetime )
CREATE TABLE Things ( Thing_id int NOT NULL , ThingName char (30) , Profil_ID int NULL , X int NULL , Y int NULL , ThingPic char (30) , room int NULL )
de virker ihvertefalde, men den identity(1,1) not for .... og collate osv kender jeg ikke
IDENTITY er autonummerering, og COLLATE er definition af tegnsæt (hvilket jeg ikke mener kan defineres på tabelniveau i MySQL). Så løsningen må være ca:
CREATE TABLE Profils ( profil_id int NOT NULL auto_increment, nick char(255) , password char(255) , lastseen datetime, PRIMARY KEY (profil_id) )
CREATE TABLE Things ( Thing_id int NOT NULL auto_increment, ThingName char (30) , Profil_ID int NULL , X int NULL , Y int NULL , ThingPic char (30) , room int NULL, PRIMARY KEY (Thing_id) )
collate står ikke beskrevet i afsnittet om CREATE TABLE afsnittet i MySQL´s hjælpefunktion, men andetsteds står der:
String Collating Support
If the sorting rules for your language are too complex to be handled with the simple sort_order[] table, you need to use the string collating functions.
Right now the best documentation on this is the character sets that are already implemented. Look at the big5, czech, gbk, sjis, and tis160 character sets for examples.
You must specify the strxfrm_multiply_MYSET=N value in the special comment at the top of the file. N should be set to the maximum ratio the strings may grow during my_strxfrm_MYSET (it must be a positive integer).
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.