How many LONG columns are allowed in a table?
Answers were Sorted based on User's Feedback
Answer / harshit varshney
Only one column can have LONG data type. And that column cannot be used in WHERE clause or in ORDER BY clause. Also we cannot add primary key constraint to that column only not to the whole table, that means we will give primary key to any column in the table except the column having the long data type. If we give, we get the error ORA-02269: key column cannot be of LONG datatype.
Is This Answer Correct ? | 4 Yes | 0 No |
Source is Sales Table: Sno Prod Sales Sales_Amount 1 A 10 2000 2 A 20 1000 3 C 10 3000 4 D 30 4000 5 A 20 1000 Target : Sales_Count T_Sales_Amt Sales_Count(A) T_Sales_Amt(A) 90 11000 50 4000 In single query, pls tell me.
How do you identify a primary key?
What is raw datatype in sql?
What is the purpose of primary key?
How to take user input in pl sql?
Is grant a ddl statement?
Explain the two type of Cursors ?
Can a primary key be a foreign key?
What's the difference between a primary key and a clustered index?
What are the two types of periodical indexes?
Suppose a student column has two columns, name and marks. How to get name and marks of the top three students.
Can you rollback after commit?