Hi,
I've the following create table specs. The table is created successfully. I would actually like 'title' to be TINYTEXT and have it UNIQUE. When I did that, I got an error.
What I hope to do after the appropriate data is entered into the database is to make titles and authors searchable by keywords. Did I set up the table correctly?
Code:
CREATE TABLE books (
id MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(120) NOT NULL,
author VARCHAR(120) NOT NULL,
about TEXT NOT NULL,
UNIQUE(title),
INDEX(title(30)),
INDEX(author(30)),
) TYPE=INNODB;
Thanks in advance
And btw, awesome changes to the site since I was last here. Congrats!