Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[wlx] odbc-wlx - просмотр Access, Excel, CSV файлов
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10
 
Post new topic   Reply to topic    Total Commander Forum Index -> Плагины Total Commander printer-friendly view
View previous topic :: View next topic  
Author Message
Destiny



Joined: 15 Dec 2015
Posts: 212

Post (Separately) Posted: Fri Mar 15, 2024 13:14    Post subject: Reply with quote

А вот для случая, когда ODBC подключение идет для Excel базы, есть такой пример:
SELECT {fn CDbl(DateTimeCol)} FROM MyTable
т.е. идет конвертация внутренней функцией CDbl() значения из поля с данными в виде числа
(типа изначально там ошибочно сохранили именно не дату, а ее числовой представление)
Так может так же вставить функцию конвертации? Что-то типа:
{fn Format(CDate(date_as_string), "dd.mm.yyyy")}

Или может прям сразу такое:
to_char(entrydate, 'dd.mm.yyyy')
Back to top
View user's profile Send private message
little-brother



Joined: 29 Sep 2021
Posts: 205

Post (Separately) Posted: Sun Mar 17, 2024 01:21    Post subject: Reply with quote

Можно наверно и таким образом попробовать, т.е. на основании типов генировать не "select * from t", а "select id, name, convert(sale_date as string) from t" и посмотреть вернет ли нужный результат или нет.

Скорой правки не обещаю. Проверю как будет возможность и самое главное - желание.
Back to top
View user's profile Send private message
Destiny



Joined: 15 Dec 2015
Posts: 212

Post (Separately) Posted: Sun Mar 17, 2024 14:06    Post subject: Reply with quote

Ок, подождем, если что... Главное, что вообще попробуем))))
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Плагины Total Commander All times are GMT + 4 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Page 10 of 10

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group