Code:
CREATE TABLE table2 SELECT *, usern AS username FROM table1;
Code:
CREATE TABLE table2 SELECT * FROM table1; ALTER TABLE table2 RENAME COLUMN usern to username;
CREATE TABLE table2 SELECT *, usern AS username FROM table1;
CREATE TABLE table2 SELECT * FROM table1; ALTER TABLE table2 RENAME COLUMN usern to username;
SELECT Usr_Name FROM user_account WHERE Usr_ID = (SELECT Poster_ID FROM message WHERE Post_Date = (SELECT Max(Post_Date) FROM message)));
CREATE TABLE DailyRoster { id_user int(11) NOT NULL, -- Should be the same as the key in your users table date datetime NOT NULL, PRIMARY KEY (id_user, date) };
Leave a comment: