Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个 joomla 组件。我需要在我的项目中导入一个 sql 视图。
将视图创建view_name为 select * frommy_table
view_name
my_table
您如何在 xml 文件中尝试添加类似
<install> <sql> <file charset="utf8" driver="mysql">install.sql</file> </sql> </install> <uninstall> <sql> <file charset="utf8" driver="mysql">uninstall.sql</file> </sql> </uninstall>
并且 install.sql 文件应该有查询。还要确保数据库用户有权添加新表。
完成!