Lindsey Kuper (lindseykuper) wrote,
Lindsey Kuper
lindseykuper

The type of arrant pedantry up with which I will not put!

ALTER TABLE `foo` CHANGE `bar` `baz` TINYINT(1) DEFAULT '0' NOT NULL;
UPDATE TABLE `foo` SET `bar` = '0' WHERE `bar` != '2';

You only need the TABLE keyword with ALTER or DROP, because those statements could apply to either a table or a database. So that means that "UPDATE TABLE" is hypercorrection.

I'm smrt.

Tags: programming
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 7 comments