MySQL查询如下
SELECT t1.*, t2.*, t3.*, t4.*, t5.*, t6.*
FROM table1 t1
INNER JOIN table2 t2
INNER JOIN table3 t3
INNER JOIN table4 t4
INNER JOIN table5 t5
INNER JOIN table6 t6
order by t1.updated_time, t2.updated_time, t3.updated_time, t4.updated_time, t5.updated_time, t6.updated_time desc
Run Code Online (Sandbox Code Playgroud)
从上面的查询中,我需要带有各自表名的结果,例如
Array(
[0] => stdClass Object
(
[id] => 1
[cloumn1] => data1
[column2] => table3
[updated_time] => data1
)
[1] => stdClass Object
(
[id] => 2
[cloumn1] => data1
[column2] => table1
[updated_time] => data2
)
)
Run Code Online (Sandbox Code Playgroud)
这些表有超过 …
以下代码无法删除文件扩展名 .php
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ $1.php [L,QSA]
Run Code Online (Sandbox Code Playgroud)
我的网址没有从 更改example/about.php为example.com/about