我想使用JDBC创建或更新表视图?
下面是我的SQL:
CREATE OR REPLACE FORCE VIEW LOGIN_VIEW "USERNAME", "PASSWORD", "HASH", "GROUPNAME"
AS
SELECT USERNAME, PASSWORD, HASH, GROUPNAME
FROM USERTABLE;
谢谢, 奸污
答案 0 :(得分:1)
如果您要问如何操作,那应该非常简单。
Statement statement = connection.createStatement();
String code = "Create ...."; /* your view creation SQL */
statement.executeUpdate(code);