i'm at the very start of learning about how to code and started from SQL and Python. I have a task: to list all primary keys in data base. How can I do it? Diagram I used
select * from public
But it returns with error
i'm at the very start of learning about how to code and started from SQL and Python. I have a task: to list all primary keys in data base. How can I do it? Diagram I used
select * from public
But it returns with error
This the query will list all the primary keys for a SQL Server database:
select * from sys.objects where type = 'PK'