Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Sql error
prest
post
Post #1





Grupa: Zarejestrowani
Postów: 91
Pomógł: 0
Dołączył: 25.12.2003

Ostrzeżenie: (0%)
-----


Hej

Ktos moze ma pojecie gdzie jest problem

  1. SQL query:
  2.  
  3. CREATE TABLE calendar(
  4. cal_id int NOT NULL AUTO_INCREMENT ,
  5. owner_id int,
  6. titlechar( 80 ) ,
  7. notechar( 120 ) ,
  8. date date,
  9. starttimechar( 5 ) ,
  10. stoptimechar( 5 ) ,
  11. repeat enum( 'Y', 'N' ) DEFAULT 'N',
  12. interv int,
  13. repeattype enum( 'DAY', 'WEEK', 'MONTH', 'YEAR' ) ,
  14. until date,
  15. lastupdate date,
  16. updateby int,
  17. calread enum( 'Y', 'N' ) DEFAULT 'N',
  18. calwrite enum( 'Y', 'N' ) DEFAULT 'N',
  19. calupdate enum( 'Y', 'N' ) DEFAULT 'N',
  20. caldelete enum( 'Y', 'N' ) DEFAULT 'N',
  21. PRIMARY KEY ( cal_id )
  22. )
  23.  
  24. MySQL said: Documentation
  25. #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'repeat enum('Y','N') DEFAULT 'N',
  26. interv int,
  27. repeattype enum('DAY','WEEK','M' at line 9
Go to the top of the page
+Quote Post

Posty w temacie
- prest   Sql error   4.05.2007, 16:06:25
- - sf   czy repeat nie jest słowem kluczowym? wtedy daj je...   4.05.2007, 16:19:03
|- - prest   Cytat(sf @ 4.05.2007, 17:19:03 ) czy ...   4.05.2007, 16:24:08
- - sf   a nie podałem?   4.05.2007, 16:45:05
|- - prest   Cytat(sf @ 4.05.2007, 17:45:05 ) a ni...   4.05.2007, 16:51:20
- - my salsa   Cytat(sf @ 4.05.2007, 17:19:03 ) czy ...   4.05.2007, 16:59:36
|- - prest   Cytat(my salsa @ 4.05.2007, 17:59:36 ...   4.05.2007, 17:05:48
- - nospor   [SQL] pobierz, plaintext CREATE TABLE `calendar` ...   4.05.2007, 17:08:59
- - prest   Cytat(nospor @ 4.05.2007, 18:08:59 ) ...   4.05.2007, 17:22:17


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 05:57