now:
CREATE TABLE t_user ( user_id INT AUTO_INCREMENT PRIMARY KEY, user_name VARCHAR(30), password VARCHAR(32), last_visit datetime, last_ip VARCHAR(23) ); CREATE TABLE t_login_log ( login_log_id INT AUTO_INCREMENT PRIMARY KEY, user_id INT, ip VARCHAR(23), login_datetime datetime );
INSERT INTO t_user (user_name,password) VALUES(‘admin‘,‘123456‘); INSERT INTO t_user (user_name,password) VALUES(‘wangjia‘,‘wangjia‘); INSERT INTO t_user (user_name,password) VALUES(‘test‘,‘test‘);
more example:
SELECT Order_ID = @OrderID , CampaignCode = @CampaignCode , ProductCode = @ProductCode , StartDate = SpotDate , EndDate = EndDate , StartTime = Media_StartTime , EndTime = Media_EndTime , Adformat = Media_Adformat , Color = Media_Color , Impression = Media_Impression , Location = Media_Location , Material = Media_Material , Position = Media_Position , Program = Media_Program , Scale = Media_Scale --Media_Showing , Size = Media_Size , SpotType = Media_SpotType , URL = Media_URL , ScheduleNo = ScheduleNo , Plan_Insertion_ID = Plan_Insertion_ID , Position = Media_Position‘
原则:简洁易观看,必要但是简要的注释。
时间: 2024-10-29 10:45:52