我想从mysql查询创建表,但添加一个带有时间戳的新列,我将捕获创建日期。
这是我的问题:
CREATE TABLE archive
AS ( SELECT a.* FROM
(
(
SELECT p.projectNo, usr.staff_id, usr.longname, usr.username, p.title, CONCAT(upr.process, " (", upr.role, ")" ) AS process
FROM project p
INNER JOIN user_project upr ON p.projectNo = upr.projectNo
INNER JOIN user usr ON upr.username = usr.username
)
) AS a
ORDER BY a.projectNo);
如何添加时间戳?
答案 0 :(得分:2)
您可以选择<div class="aboutmeprofile">
<h2 id="h2">Portfolio</h2>
<hr>
<div class="container">
<img class="image" src="http://www.jqueryscript.net/images/Simplest-Responsive-jQuery-Image-Lightbox-Plugin-simple-lightbox.jpg" />
<span class="text">
Gym
</span>
</div>
<div class="container">
<img class="image" src="http://www.jqueryscript.net/images/Simplest-Responsive-jQuery-Image-Lightbox-Plugin-simple-lightbox.jpg" />
<span class="text">
Hiking
</span>
</div>
</div>
作为创建时间戳的额外列,例如
NOW()