Thread LOCK für mysql? (13 answers)
Opened by Froschpopo at 2007-02-02 14:47

pq
 2007-02-03 13:21
#35168 #35168
User since
2003-08-04
12209 Artikel
Admin1
[Homepage]
user image
[quote=Froschpopo,03.02.2007, 03:55]
Code: (dl )
1
2
3
   PRIMARY KEY (id),
  UNIQUE KEY user (name, id)
)


name muss auch einmalig sein da dies der Username ist.[/quote]
wenn name eindeutig sein soll, dann mach es auch eindeutig statt
den unique key über id und name gleichzeitig zu legen.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread LOCK für mysql?