MYSQL使用技巧

1.
show databases;
show tables;

2.
print显示
select "Creating Foo table" as "Action";

3.防止SQL注入
mysql_real_escape_string(XXXX)
这个函数能够过滤’”等符号

4.char函数
select char(83,99,48,114,112,105,111,110) as "Action";

posted @ 2010-03-14 17:02  Fan Zhang  阅读(112)  评论(0)    收藏  举报