Oracle 临时表中提交的目的是什么?交易范围:
ON COMMIT DELETE ROWS
Run Code Online (Sandbox Code Playgroud)
当前事务的提交或当前会话中发生的任何提交?
我有一些像这样的代码:
String[] colors = {"black", "blue", "yellow", "red", "pink", "green", "cyan"};
String[] alphabets = {"A", "B", "C", "D", "E", "F", "G", "H", "I"};
LinkedList<String> links = new LinkedList<>(Arrays.asList(colors));
System.out.println(links);
colors = links.toArray(alphabets);
System.out.println(Arrays.asList(colors));
Run Code Online (Sandbox Code Playgroud)
它的输出是:
[black, blue, yellow, red, pink, green, cyan]
[black, blue, yellow, red, pink, green, cyan, null, I]
Run Code Online (Sandbox Code Playgroud)
第二个输出行中的null是什么?为什么?