如何根据用户登录显示记录数据? 表示登录到应用程序页面,搜索的数据或记录必须与用户相关。 感谢。
答案 0 :(得分:0)
一种方法可能是使用SQL-Server SUSER_NAME()函数。例如:
List<String> tablecols = Arrays.asList("first_col", "second_col");
List<Column> columns = new ArrayList<Column>();
for (String tablecol : tablecols) {
columns.add(new Column(tablecol));
}
initialDataFrame.select(columns.toArray(new Column[columns.size()]));