View Single Post
Old 02-04-2021, 09:47 AM   #9
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Nicolas.Laurent View Post
I also use SQLiteStudio

And my question is what is the query to export ALL the tags. I use this one and it doesn't work.

SELECT id,
author_sort,
title,
(SELECT name FROM publishers WHERE publishers.id IN (SELECT publisher from books_publishers_link WHERE book=books.id)) publisher,
(SELECT format FROM data WHERE data.book=books.id) formats,
path,
(SELECT name FROM tags WHERE tags.id IN (SELECT tag from books_tags_link WHERE book=books.id)) tags
FROM books
I really don't see why you want to use SQL unless simply as a learning experience. A CSV catalog gives you the same information, except the path, with no hassle at all. Example attached.
Attached Thumbnails
Click image for larger version

Name:	Clipboard01.jpg
Views:	121
Size:	38.2 KB
ID:	185227  
chaley is offline   Reply With Quote