示例
Sku Qty
Apple 1
Orange 1
Apple 3
Orange 4
我要排除数量为1的完全是橙色*的东西。
如果我愿意
WHERE ((QTY)>1) AND ((SKU) NOT "Orange")
结果将是:
Apple 3
我需要结果:
Sku Qty
Apple 1
Apple 3
Orange 4
答案 0 :(得分:1)
如果我真的假设您的意思是“不是数量为1的橙色”,则使用;
public class file {
static void WriteToFile() {
try {
FileWriter myWriter = new FileWriter("newfile1.txt");
myWriter.write("Tady bude vysledek" +ResultOfFaktorial);
myWriter.close();
System.out.println("Successfully wrote to the file.");
} catch (IOException e) {
System.out.println("An error occurred.");
e.printStackTrace();
}
}
}
从逻辑上讲,它等效于:
where not (sku = "Orange" and qty = 1)