Hi there.
I am working on a small Python script to automate MySQL DB migration on a PacsOne DICOM server.
I want to get the structure form one DB and append it to another DB.
I’m a little stuck on a problem with MySQL. When I run a ‘describe table’ query in Python, the output I get is like ‘path varchar(255) NO None’. The NO stands for NOT NULL.
| Field | Type | Null | Extra |
±--------------------±---------------------±-----±----±--------±------+
| studyuid | varchar(64) | NO | NULL |
Is there any way in MySQL to see the ‘describe table’ output as a query, e.g. “path varchar(255) not null;” ?
Thanks a lot in advance!