excepInfo: select id,describe from iwebshop_student_problem where id=256 order by id desc -- 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 'describe from iwebshop
首先描述问题,student表中有字段startID,endID.garde表中的ID需要对应student表中的startID或者student表中的endID才能查出grade表中的name字段,这时候问题就来了,如果需要一条sql一句同时查出garde表中的两条数据怎么办?(两表的关联字段为 SID) sql="select b.name,c.name as name2 from student a,garde b,grade c where a.SID=b.SID and a.SID=c
这两天在搞一个修复的小功能 需求: A表,B表,C表,日志文件 先筛选出A表和B表中都符合条件的数据,然后检查这些数据在C表中是否存在.如果不存在,就从日志中读取数据,存入C表中,如果存在,则不做操作. 逻辑理清之后,自己尝试了很多方式,一直都不能让自己满意,都感觉性能太低,还可以在优化,因为时间关系,不能再拖了,就先记录一下 目前还凑合的实现方式,后续有时间的话,会再次优化一下.以下共勉 DataTable dt= then end ' and (B.fhsj between '2019-06
C# Mongo DB 修改嵌套集合中的字段 虽然c#的mongo 驱动很强大,而且还支持linq,但是一些复杂的操作语句还是比较困难 这里我用Bson实现功能 这是模型(我这里有多层嵌套) public class CtStreetPurpose { public long Id { get; set; } public List<StreetPurpose> StreetPurposes { get; set; } } public class StreetPurpose { public