Description of MySQL usage tips

Source: Internet
Author: User

The following articles mainly introduce MySQL usage skills. I like to accumulate some tips or some useful experience when using MySQL databases, the following articles mainly describe how to use MySQL. I hope you will gain some benefits after reading them.

One of the tips for using MySQL.

 
 
  1. Show databases;
  2. Show tables;

MySQL Tips 2.

Print display

 
 
  1. Select "Creating Foo table" as "Action ";

MySQL usage tips 3. Prevent SQL Injection

 
 
  1. MySQL_real_escape_string (XXXX)

This function can filter 'and other symbols.

MySQL usage tips 4. char Functions

 
 
  1. Select char (83,99, 48,114,112,105,111,110) as "Action ";

The above content is an introduction to MySQL's usage skills. I hope you will have some gains.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.