use main SELECT * FROM TMerchantInfo WHERE FMchNo like '%hubei%' AND FComputerName = 'YOS-2UAPJBIQTOA' ORDER BY FTime desc SELECT * FROM TMerchantMachineInfo WHERE FMachineName like '%HuBeiMF%' GROUP BY FMachineId SELECT * FROM TMerchantMachineInfo WHERE FMachineId = 'K615234H522F785F00' CREATE TABLE mql_e ( dir_name NVARCHAR(200) PRIMARY KEY ) delete mql_e where dir_name like '%学习资料\%' select * from TWeChatOpenAuthAccount ORDER by FCreateTime desc UPDATE TWeChatOpenAuthAccount SET FMPCodeStatus = 'Audit' WHERE FAuthAppId = 'wx070ca7a429abe584' SELECT * FROM mql_e WHERE dir_name like '%宗%' --and dir_name not like 'D:\用户目录\我的文档\WeChat%' ORDER BY dir_name SELECT * FROM mql_e where dir_name like '%config.php%' SELECT * FROM TMerchantInfo WHERE FMchId = 10152 DELETE TMerchantMachineInfo WHERE FMchId = 42 DECLARE @i INT SELECT * FROM TMerchantInfo WHERE FMchNo IN ( '0713sggj', '027KeLin', '0724MJTX', '0715AiShang', '027fanhua', '027TFC', '0713LHGJ', '027JingShi', '027YJMY', '027JTL', '0722GuiZuDao', '027SiLu', '027ShaXuan', '0713MingRen', '0471SiDiXiu', '027mingliu', '027JSSJF', '0716TJY', '027HuaYi', '027WeiNiMei', '027shaxuan2', '027aj', '027MaiNi', '0713NRCT', '0728GJAY', '027BBTKL') SELECT * FROM TMerchantMachineInfo WHERE 1=1 AND FMachineId IN('K615234H522F785F00','9K16678UH2072451S1', '4SF59A8A4F27AF9SU2','4SF59A8A4F27AF9SU2','9K16678UH2072451S1','19F47H1625F01FU352','U9F71F7KSU2KAA0K31') -- AND FMchNo = '0719kaman' AND FMchId IN ( SELECT FMchId FROM TMerchantInfo SELECT * FROM TMerchantLoginLog WHERE FMchNo IN ( '0713sggj', '027KeLin', '0724MJTX', '0715AiShang', '027fanhua', '027TFC', '0713LHGJ', '027JingShi', '027YJMY', '027JTL', '0722GuiZuDao', '027SiLu', '027ShaXuan', '0713MingRen', '0471SiDiXiu', '027mingliu', '027JSSJF', '0716TJY', '027HuaYi', '027WeiNiMei', '027shaxuan2', '027aj', '027MaiNi', '0713NRCT', '0728GJAY', '027BBTKL') ORDER BY FTime desc ) DELETE TMerchantConfig WHERE FMchId IN( SELECT FMchId FROM TMerchantInfo WHERE FMchNo IN ( '0713sggj', '027KeLin', '0724MJTX', '0715AiShang', '027fanhua', '027TFC', '0713LHGJ', '027JingShi', '027YJMY', '027JTL', '0722GuiZuDao', '027SiLu', '027ShaXuan', '0713MingRen', '0471SiDiXiu', '027mingliu', '027JSSJF', '0716TJY', '027HuaYi', '027WeiNiMei', '027shaxuan2', '027aj', '027MaiNi', '0713NRCT', '0728GJAY', '027BBTKL') ) AND FKey like '%Export%' DELETE TAgentPermission WHERE FMachineCode IN('K615234H522F785F00','9K16678UH2072451S1', '4SF59A8A4F27AF9SU2','4SF59A8A4F27AF9SU2','9K16678UH2072451S1','19F47H1625F01FU352','U9F71F7KSU2KAA0K31') -- AND FMchNo = '0719kaman SELECT * FROM TPartnerInfo UPDATE TPartnerInfo SET FPW = 'AAAAAA' WHERE FPartnerId = 'hubei' SELECT * FROM sysobjects WHERE Name like 'TP%' SELECT * FROM TMerchantLoginLog WHERE FMachineId IN('K615234H522F785F00','9K16678UH2072451S1', '4SF59A8A4F27AF9SU2','4SF59A8A4F27AF9SU2','9K16678UH2072451S1','19F47H1625F01FU352','U9F71F7KSU2KAA0K31') -- AND FMchNo = '0719kaman' ORDER BY FTime desc DELETE TMerchantLoginLog WHERE FIPAddress = '36.148.41.90' SELECT * FROM TMerchantMachineInfo ORDER BY FCreateTime desc SELECT * FROM TConsumeBill SELECT * FROM TMerchantBlock SELECT * FROM TMerchantLoginLog WHERE FMachineId = 'S3F08A589FF7F50K74' ORDER BY FTime desc SELECT * FROM TMerchantLoginLog WHERE FMchNo = '027maini' ORDER BY FTime desc INSERT TMerchantBlock(FMchId,FEnabled ,FMessage,FValue,FKey) SELECT 0,1,'由于非法操作,该电脑已锁定,请要马庆龙联系赛道软件公司解锁','S3F08A589FF7F50K74','MachineId' delete TMerchantBlock where FValue = 'S3F08A589FF7F50K74' DELETE TMerchantLoginLog WHERE FIPAddress = '36.148.43.69' SELECT * FROM TMerchantBlock CREATE USER 'sql'@'%' IDENTIFIED BY '123456'; GRANT ALL ON *.* TO 'sql'@'%'; select A.FMchNo,A.FMchName,A.FServerId, B.FConnectionString FROM TMerchantInfo AS A,TMerchantServerConfig AS B WHERE A.FMchId = B.FMchId AND A.FOwner = 'hubei' select len('DAFF9CD3614C53ACD03A94EBB9C08BB5BD3C6C1F') SELECT * FROM TMerchantLoginLog WHERE FMachineId = 'K615234H522F785F00' SELECT * FROM TMerchantLoginLog WHERE 1=1 AND FMchNo = '027Demo1' AND FIPlocation NOT like '%湖北%' GROUP BY FMachineId SELECT * FROM TMerchantLoginLog WHERE FOsUserName = 'martin' ORDER BY FTime desc drop table hb_company SELECT * FROM hb_company SELECT * FROM hb_employee CREATE TABLE hb_company ( mch_id BIGINT, comp_id bigint, comp_name varchar(100), bill_count int, min_bill_time datetime, max_bill_time datetime, primary key (mch_id,comp_id) ) CREATE TABLE hb_employee ( mch_id INT, emp_id BIGINT, emp_no VARCHAR(100), emp_name VARCHAR(100), dept_name VARCHAR(100), pos_name VARCHAR(100), mobile VARCHAR(100), PRIMARY KEY(mch_id,emp_id) ) select m.FMchNo as 客户号,M.FMchName AS 客户名称,a.comp_name as 门店名称,a.bill_count as 总单数,a.min_bill_time as 第一张单时间 ,a.max_bill_time as 最后一张单时间 FROM hb_company as a,TMerchantInfo AS M where a.mch_id = m.FMCHID ORDER BY M.FMchNo SELECT m.FMchNo as 客户号,M.FMchName AS 客户名称,a.emp_name as 经理名称,a.dept_name as 部门,a.pos_name as 职位,a.mobile as 手机 FROM hb_employee as a,TMerchantInfo AS M where a.mch_id = m.FMCHID ORDER BY M.FMchNo SELECT m.FMchNo as 客户号,M.FMchName AS 客户名称,c.comp_count as 门店数, b.bill_count as 总单数,b.min_bill_time as 第一张单时间 ,b.max_bill_time as 最后一张单时间 FROM TMerchantInfo as m, ( SELECT mch_id,sum(bill_count) as bill_count,min(min_bill_time) as min_bill_time,max(max_bill_time) as max_bill_time FROM hb_company group by mch_id ) AS B, ( SELECT mch_id ,sum(1) as comp_count from ( SELECT mch_id,comp_id FROM hb_company GROUP BY mch_id,comp_id) as b group by mch_id ) as c where b.mch_id = m.FMCHID and c.mch_id = b.mch_id ORDER BY B.max_bill_time desc SELECT mch_id ,sum(1) as comp_count from ( SELECT mch_id,comp_id FROM hb_company GROUP BY mch_id,comp_id) as b group by mch_id update a set a.billno = b.password from yjt_number_detail as a,user as b where b.user = 'root' and b.host = 'localhost' {'first':'1'','total':'1','last':''1','comp':'2,2222); update `yjt_number_detail` set billno = 'aaa'; -- ','userid':3} insert into yjt_number_detail(sumid,billno,[type],status,storeid,gettime) values (3,'01',3,0,2,2222)--,1632989006) error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--,1632989444)' at line 1 The SQL being executed was: insert into `yjt_number_detail`(sumid,billno,`type`,status,storeid,gettime) values (5,'01',3,0,2,2222)--,1632989444) update yjt_number_detail set billno = database() SELECT * FROM TMerchantInfo WHERE FMchId = 20311 SELECT * FROM TAppSession WHERE FAppId IN(SELECT FValue FROM TConfig WHERE FKey = 'EmployeeAppId')