/ Published in: SQL
[Query related to PHP code to save tweets from the twitter search API to a MySQL database](http://snipplr.com/view/56994/save-tweets-using-php-from-the-twitter-search-api-to-a-mysql-database/ "PHP code to save tweets from the twitter search API to a MySQL database")
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
CREATE TABLE `tweets` ( `id` BIGINT(20) NOT NULL, `created_at` datetime NOT NULL, `from_user` VARCHAR(100) NOT NULL, `from_user_id` BIGINT(20) NOT NULL, `text` text NOT NULL, `source` text NOT NULL, `geo` VARCHAR(100) NOT NULL, `iso_language_code` VARCHAR(10) NOT NULL, `profile_image_url` VARCHAR(100) NOT NULL, `to_user_id` BIGINT(20) NOT NULL, `query` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;