Thread Probs mit DBIx::Class::PK::AutoINSERT INTO books (: PK::Auto setzt anscheinend keine PK's (6 answers)
Opened by seebap at 2006-08-20 16:11

pq
 2006-08-21 13:15
#30202 #30202
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
[quote=seebap,21.08.2006, 09:28]
Code: (dl )
1
2
3
4
5
CREATE TABLE books (
           id          INTEGER PRIMARY KEY,
           title       TEXT ,
           rating      INTEGER
   );

[/quote]
kein wunder, da fehlt ja auch noch das AUTO_INCREMENT,
wie esskar schon erwähnte.
http://mysql.com/doc/refman/5.0/en/example-auto-increment.html\n\n

<!--EDIT|pq|1156151767-->
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 Probs mit DBIx::Class::PK::AutoINSERT INTO books (: PK::Auto setzt anscheinend keine PK's