Find study instance uid for all the files stored before a date.
SELECT distinct(study.study_iuid)
FROM series
JOIN study ON series.study_fk = study.pk
JOIN patient ON study.patient_fk = patient.pk
JOIN instance ON instance.series_fk = series.pk
JOIN files on files.instance_fk = instance.pk
where files.created_time < '2012-12-15';
Showing posts with label mysql. Show all posts
Showing posts with label mysql. Show all posts
Monday, January 28, 2013
Wednesday, October 10, 2012
mysql Can't create/write to file /var/tmp/
Solaris 10 x86
mysqldump: Couldn't execute 'show fields from `general_log`': Can't create/write to file '/var/tmp/#sql3a3_43024_4.MYI' (Errcode: 13) (1)
Why?! WTF!
The last operation I made was the installation of MegaRAID Storage Manager from LSI Corporation package.
So? The /var/tmp directory was no more 777
Strange
mysqldump: Couldn't execute 'show fields from `general_log`': Can't create/write to file '/var/tmp/#sql3a3_43024_4.MYI' (Errcode: 13) (1)
Why?! WTF!
The last operation I made was the installation of MegaRAID Storage Manager from LSI Corporation package.
So? The /var/tmp directory was no more 777
Strange
Subscribe to:
Posts (Atom)