在oracle中提示用户表

时间:2014-04-09 08:56:51

标签: sql oracle

如何提示用户在Oracle中输入表名?我想在选择之后提供关于桌子的报告。我有这个:

SELECT column_name "Column Name", data_type "Data Type", data_length "Data Length",
                   data_precision "Data Precision", nullable "NULLS Allowed?"
FROM user_tab_columns
WHERE table_name = &;

我知道&允许用户输入数据吗?

1 个答案:

答案 0 :(得分:1)

SELECT column_name "Column Name", data_type "Data Type", data_length "Data Length",
                   data_precision "Data Precision", nullable "NULLS Allowed?"
FROM user_tab_columns
WHERE table_name = UPPER('&tabname')
/