|
|
|
Few Tips.
This is Part-I of the tips. Hope you will come back for Part-II
1] Under unix Database names are case sensitive, under windows this restriction does
not apply, although you must refer to databases and tables using the same lettercase
throughout a given query.
2] To get list of tables in MySQL
mysql>use show tables;
3] MySQL Display Date in Format - 'YYYY-MM-DD'
4] MySQL Display DateTime in Format - 'YYYY-MM-DD HH:MM:SS'
5] MySQL Display Time in 'HH:MM:SS'
6] To verify table in MySQL DB use DESCRIBE tablename;
7] To redirect MySQL Console output to a text file - Use \T filename.txt
8] KEYWORD can be entered in anycase
9] To cancel a command which is in the process of entering use \C
mysql>select ;
now;
\c;
mysql>
10] Prompt - If you are getting mysql prompt in '> or "> instead of ->, you've
inadvertantly left out a quote character.
11] mysql> select * from productinfo where pr_exp>=now() and is_it_suppl="y">
There should be a quote after y, so simply cancel command using \c
12] MySQL, SQL patterns are case insensitive by default.
13] Regular expressions are case sensitive in MySQL.
14] Prior to MySQL Version 3.23.4, REGEXP is case sensitive.
15] From MySQL 3.23.4 on, to force a REGEXP comparison to be case sensitive, use the
BINARY keyword
mysql> select * from productinfo where pr_name regexp binary "^a";
Empty set (0.01 sec).
|
|
| This program allows you to upload an ODBC ressource - i.e. an MS-Access database to a MySQL server. Categories : Databases, MySQL, Complete Programs, PHP, Databases | | | bookmarker - PHP, PHPLIB, MySQL WWW based bookmark manager Categories : MySQL, PHP, MySQL, Complete Programs, Databases | | | Accepts a database & hostname from a user and then HTTP username and password. Uses this to connect to a MySQL database. Produces a form based on the tables it finds there to allow the user to do SELECTs, INSERTs, and DELETEs. Categories : Databases, PHP, MySQL, Complete Programs | | | phpAds, a complete banner and ad management system with detailled tracking and stats. Categories : MySQL, Complete Programs, Ecommerce, PHP, Databases | | | Point and Click Interface ala MS Access for creating SQL statements. Categories : MySQL, Complete Programs, General SQL, PHP, Databases | | | MySQL wrapper class (PHP 5+ only) Categories : MySQL, Databases, Classes and Objects, Object Oriented | | | Message of the Day - Random Message (Needs MySQL!) Categories : Databases, HTML and PHP, PHP, MySQL | | | email new items in db Categories : PHP, Email, Databases, MySQL, Beginner Guides | | | Alternating background color for HTML table rows Categories : PHP, Databases, MySQL, HTML and PHP | | | color codes for positive and negative numbers Categories : PHP, MySQL, Databases, HTML | | | Authorize Me! An authentication script. Categories : MySQL, Databases, Authentication, PHP | | | A very simple way to build and do a hierarchical html categories browser without javascript , just using html php and mySql
Categories : HTML and PHP, Databases, Algorithms, PHP, MySQL | | | Linked comboboxes with php-mysql & javascript Categories : PHP, Java Script, Databases, MySQL | | | mysql_escape_string Categories : PHP, MySQL, Databases, Strings | | | Automatically printing the contents of an sql table in MySQL. Categories : MySQL, PHP, HTML and PHP, Databases | |
|
|
|