Title: SQL Table Lookup
Author: harvest316
Published: <strong>2014 年 8 月 19 日</strong>
Last modified: 2014 年 8 月 19 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/sql-table-lookup.svg)

# SQL Table Lookup

 作者：[harvest316](https://profiles.wordpress.org/harvest316/)

[下载](https://downloads.wordpress.org/plugin/sql-table-lookup.zip)

 * [详情](https://cn.wordpress.org/plugins/sql-table-lookup/#description)
 * [评价](https://cn.wordpress.org/plugins/sql-table-lookup/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/sql-table-lookup/#developers)

 [支持](https://wordpress.org/support/plugin/sql-table-lookup/)

## 描述

You can use these SQL lookup shortcodes to extract data from any table in your WordPress
database:

    ```notranslate
    </p>

    <p>[sql]SELECT a FROM b WHERE c='d';
    ```

If a table or column name has a space or other unusual character in it, wrap it 
in `backticks`. If a value contains a
 space or other unusual characters, wrap it
in ‘single quotes’.

While I’ve taken considerable effort to prevent SQL injection attacks by escaping
all other dangerous characters with esc_sql (which uses mysql_real_escape_string/
mysqli_real_escape_string and addslashes), I would advise against using this plugin
on a site that accepts any kind of posts or comments from untrusted sources.

## 评价

此插件暂无评价。

## 贡献者及开发者

「SQL Table Lookup」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ harvest316 ](https://profiles.wordpress.org/harvest316/)
 *   [ Seo ](https://profiles.wordpress.org/seo/)

[帮助将「SQL Table Lookup」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/sql-table-lookup)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/sql-table-lookup/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/sql-table-lookup/)，或通过[RSS](https://plugins.trac.wordpress.org/log/sql-table-lookup/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/sql-table-lookup/)。

## 额外信息

 *  版本 **0.1**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/sql-table-lookup/)
 *  [高级视图](https://cn.wordpress.org/plugins/sql-table-lookup/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/sql-table-lookup/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/sql-table-lookup/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/sql-table-lookup/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/sql-table-lookup/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/sql-table-lookup/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/sql-table-lookup/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/sql-table-lookup/reviews/)

## 贡献者

 *   [ harvest316 ](https://profiles.wordpress.org/harvest316/)
 *   [ Seo ](https://profiles.wordpress.org/seo/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/sql-table-lookup/)