Can you define a foreign key, with a key from the same
table?

Answer Posted / abhay

No, foreign key in a table is a reference from another
table, making a key foreign in the table itself will not be
useful for anything since the table will reference itself
during a query

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I receive a ResultSet from a stored procedure?

529


Is jdbc a protocol?

501


How do I find jdbc version?

536


What is resultset in jdbc with example?

499


What are the steps required to execute a query in jdbc?

534






How to move the cursor in scrollable resultset ?

577


How does jdbc driver work?

535


What is the role of the jdbc drivermanager class?

489


What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.

477


What is jsp and jdbc?

503


What does jdbc do?

531


Explain the difference between resultset and rowset in jdbc

540


What is a datasource in java?

506


How to connect multiple database in jdbc?

497


Which Java and java.sql data types map to my specific database types?

542