如何提示用户在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 = &;
我知道&允许用户输入数据吗?
答案 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')
/