【发布时间】:2020-08-27 05:32:14
【问题描述】:
有没有办法在typo3 版本10 中执行普通SQL?我该怎么做?
// in previous versions you could do the following
$sql = 'SELECT * FROM tt_content;';
$GLOBALS['TYPO3_DB']->sql_query($sql);
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
// ...
}
编辑
简单的脚本SELECT * FROM tt_content 只是一个占位符。我想对我的统计页面做一些特殊的迁移或一些特殊的请求。
【问题讨论】:
标签: typo3 typo3-10.x