我正在dbeaver 6.1.2和navicat 12.1.20中针对我的数据库运行查询,并获得相同的结果。
运行时,我期望一组约20000行。相反,我只能得到大约18000。如果删除select *
from final_mat
where (cola-colb) <= 1000
and colc = 0
and cola > cold
and colb < cold;
的条件,那么我会看到缺少的行(结果小于1000)。
我的结果集<= 1000停在大约960的结果上。这些列是数字,并带有小数。
查询或数据库是否存在问题?
我尝试将结果转换为数字,甚至将结果四舍五入为最接近的整数。没运气。
如果我将值增加到1500,则大多数(如果不是全部记录都很难告诉)然后出现(我能告诉的960-1000最好的一切)。
func combine(text: String, withImage image: UIImage, atPoint point: CGPoint) -> UIImage? {
// Variables
let textColor = UIColor.white
let font = UIFont.systemFont(ofSize: 12)
let attributes: [NSAttributedStringKey: Any] = [
.foregroundColor: textColor,
.font: font
]
// Set scale and begin context
let scale = UIScreen.main.scale
UIGraphicsBeginImageContextWithOptions(image.size, false, scale)
// Draw
image.draw(in: CGRect(origin: .zero, size: image.size))
let rect = CGRect(origin: point, size: image.size)
text.draw(in: rect, withAttributes: attributes)
// Get the new image
let newImage = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
return newImage
}
我希望大约2万行,而只能返回18,000行。