Answer the question
In order to leave comments, you need to log in
Mysql change field length?
how to change field length?
CREATE TABLE IF NOT EXISTS my_table (
id int(11) unsigned NOT NULL AUTO_INCREMENT,
timestamp int(22) NOT NULL,
ip varchar(40) NOT NULL
PRIMARY KEY (id)
)
CREATE TABLE IF NOT EXISTS my_table (
id int(22) unsigned NOT NULL AUTO_INCREMENT,
timestamp int(40) NOT NULL,
ip varchar(80) NOT NULL
PRIMARY KEY (id)
)
Answer the question
In order to leave comments, you need to log in
I will give a simple advice on how to properly build such DDL data. Go to phpmyadmin, through the GUI change what you need in the table, and copy the query.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question