• 0

mysql error


Question

1. create a database-table:

CREATE TABLE useronline (

time int(15) NOT NULL,

ip varchar(15) NOT NULL,

file varchar(50) NOT NULL,

PRIMARY KEY (time),

KEY ip (ip),

KEY file (file) );

these are the instructions to create the tables.

ive atatched a jpg of what ive entered and here is the error message im receiving when trying to save the tables.

#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 '(time), `key ip` TEXT(ip), `key file` TEXT(file))' at line 1

any help appreciated

post-46-1095717021.jpg

Link to comment
https://www.neowin.net/forum/topic/220407-mysql-error/
Share on other sites

2 answers to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.