我喜欢对 NCLOB 类型的列(我们称之为information列)执行带有 where 条件的选择查询。它具有以下格式:
{“名字”:“名字1”,“姓氏”:“姓氏1”}
我想做这样的事情
从 myTable 中选择 *,其中 information.firsName = "targetName"
但我不知道该怎么做。
有什么提示吗?
我想在一个文本文件中显示我的Console的输出.
public static void main(String [ ] args){
DataFilter df = new DataFilter();
df.displayCategorizedList();
PrintStream out;
try {
out = new PrintStream(new FileOutputStream("C:\\test1.txt", true));
System.setOut(out);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Run Code Online (Sandbox Code Playgroud)
我在屏幕上正确得到了我的结果,但没有得到文本文件?测试文件是生成但是它是空的?