Merhaba Arkadaşlar Bir uygulama yapıyorum ve veritabanı bağlantısı yaparken bir sorunla karşılaştım yardımızı rica ediyorum.Aşağıdaki gibi bir tablo oluşturmak istedim ve hataları ile birlikte aşağıda görebilirsiniz..
1. tablo hatası
Hata SQL sorgusu:
mysql > CREATE TABLE forum_posts(
topic_id int NOT NULL PRIMARY KEY AUTO_INCREMENT , topic_id int NOT NULL post_text text, post_create_time datetime, topic_owner varchar( 150 ) );
MySQL çıktısı:
#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 'mysql> create table forum_posts ( topic_id int not null primary key auto' at line 1
#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 'mysql> create table forum_topics ( > topic_id int not null primary key aut' at line 1