除了要指定写到输出文件中的数据格式之外,还必须提供该文件的名称和一个用于指定输出数据的SQL SELECT语句。
Besides specifying the format of the data that is to be written to the output file, you must also provide the name of that file, and an SQL SELECT statement to specify the data that is to be exported.
有必要指出,这里必须使用格式语句规定输出文件是 HTML 格式。
One thing to notice here is that I had to use a format statement to specify that the output file should be HTML.
您可能以前没有看到过这种打印方式,格式化print语句将把一个格式字符串应用到后续数据中以创建特定格式的输出。
In case you haven't seen this before, a formatted print statement applies a format string to subsequent data to create specially formatted output.
应用推荐