MySQL常用语句

    xiaoxiao2021-12-14  20

    MySql 语句: 清空—表—表名 truncate table Monthly; 新增 insert `Monthly`(`A_username`,`A_password`,`A_state`,`A_equipment`,`A_Left_apprentice`,`A_total`,`A_Largearea`,`A_Order_number`,`A_Single_user`,`A_channel`,`A_establish_title`,`A_whether_equipment`) values('1620454997','woaini98','达到上限','燃料系统+1*3*3',47,60,'电信一区','651661884616123','佬毛毛','淘宝',current_timestamp,'真'); 显示所有数据库 show DATABASES 显示 数据库版本 select version() 查询未到时间的数据 select * from dbo.yhb where Y_SSRJ=1001 and  Y_DQ>'2012-05-24 09:40:00' 查询最近1分钟的数据 select *  from 表名  where TIME_TO_SEC(TIMEDIFF(now(),t_time)) < 60 增加数据 INSERT INTO RJ_WLYZ (A_A,A_B,A_C,A_D,A_E) VALUES ('BS','BS','BS','BS','BS') UPDATE LMM_CZ SET A_ZT = 待使用 WHERE A_CZM = sdasddafasz UPDATE LMM_CZ SET A_JXM = 752572172 WHERE A_CZM = sdasddafasz
    转载请注明原文地址: https://ju.6miu.com/read-971924.html

    最新回复(0)