|
|
#1 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,046
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Copy columns
How can I copy one column to another
Specifically I want to copy the standard Calibre column Modified (last_modified) which is a date, to a Custom Column MyModified (mymodified) which is a date. I want it do it to all books in the library thanks BR ps : I have the feeling this is a question to which I once knew the answer
|
|
|
|
|
|
#2 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,327
Karma: 62025226
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,046
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
|
|
|
|
|
#4 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,086
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
|
Quote:
Set the 'Search mode' to 'Regular Expression' and be amazed at what you can do with it.Read this for info on REs. |
|
|
|
|
|
|
#5 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,327
Karma: 62025226
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,046
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Thanks mbovenka
I already wrote a SQL script (I'm better at them than I am at RE's) - it seems to have worked. And I will understand it tomorrow when I'll adapt it to copy from last weeks database last_modified to this weeks database mymodified where this weeks last_modified is a 2012-11-24 13:21:35 I thought there was a simple way to copy like typed fields, I must have dreamt it. BR |
|
|
|
|
|
#7 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,327
Karma: 62025226
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
|
|
|
|
|
#8 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,046
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I don't think I am mate, but cryptic crossword puzzles aren't my cup of tea.
I've done what I wanted via an SQL Script. Read last_modified from last fridays metadata.db and wrote it to #mymodified in the current metadata.db. Maybe a Bulk Metadata Edit RegExp could have done that - read one instance of a database and written to another - with a different schema - but I had neither the time or inclination to figure out how - considering the SQL tools & skills I have 'at my fingertips'. So, I now have what I set out to do yesterday - a #mymodified TIMESTAMP column populated with the last_modified TIMESTAMP column as of last Friday. When I want to change a #mymodified value, I would normally also change the #bookstatus value; I already do that via metadata edit, so its no hardship to click the Set 'My Modified' to today button, which btw also updates the time element ![]() I am wondering if my 'problem' had something to do with the fact that I start calibre in View Managers Default configuration which up until half an hour ago had last_modified as its secondary sort field. I have the impression that not many of us use View Manager, and even fewer sort on a custom column (#bookstatus) and last_modified date (now changed to #mymodified). For me at least this matter is resolved BR Last edited by BetterRed; 11-30-2012 at 12:15 AM. Reason: spelling error |
|
|
|
|
|
#9 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,327
Karma: 62025226
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| "Copy to Libary (delete after copy)" - Placement Suggestion | plib | Library Management | 8 | 07-17-2012 10:53 PM |
| Columns | raiderkilo | Calibre | 5 | 01-21-2012 06:53 PM |
| Columns | darkpoet | ePub | 8 | 09-09-2009 11:17 PM |
| soft copy vs. hard copy no more. | smokey | News | 4 | 12-02-2007 03:57 PM |
| gmail copy (gmcp) - Perl script to copy files to/from Gmail | Colin Dunstan | Lounge | 0 | 09-04-2004 02:24 PM |