Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Excel 表中有数据,我需要使用 Excel 表数据更新 SQL Server DB 表,我能够编写 SQL Server 查询并获取数据。但是我没有以日期格式获取日期字段,它被呈现为正常数字。
在单元格 B2 中试试这个 -
="Select " & TEXT(A2,"DD/MM/YYYY")
试试这个
="select '" & TEXT(A2, "dd/mm/yy") & "' from Table "