在Joomla mysql查询中,表名称开头的#__是什么意思? [英] What does #__ mean at the beginning of a table name in a Joomla mysql query?

查看:75
本文介绍了在Joomla mysql查询中,表名称开头的#__是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个看起来像这样的mysql查询 $ query =" SELECT * FROM #__ content" .

I have a mysql query that looks like this $query="SELECT * FROM #__content".

表名开头的 #__ 是什么意思?

What does the #__ at the start of the table name mean?

推荐答案

#__ 只是数据库表前缀,在您的configuration.php中定义

#__ is simply the database table prefix and is defined in you configuration.php

如果未定义,人们将不得不手动将其前缀输入到每个需要访问数据库的扩展名中,您可以想象这很烦人.

If it wasn't defined, people would have to manually have to input their prefixes into every extension that requires access to the database, which you can imagine would be annoying.

例如,如果您的数据库表前缀为 j25 ,则:

So for example, if you database table prefix is j25, then:

#__ content = j25_content

这篇关于在Joomla mysql查询中,表名称开头的#__是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆