在SQL中将字符串值转换为日期时间

时间:2018-10-17 14:40:58

标签: sql sql-server

我的查询有问题

USE [PRD-PMUT-PSP-Repository]
GO

SELECT 
    TD.ID, LOM.ScanDate, RD.ProcessorType, RD.ProcessorResult, RD.Score  
FROM 
    [dbo].[LogicalObject_Metadatas] LOM WITH(NOLOCK)
JOIN 
    [dbo].[LogicalObject] LO WITH(NOLOCK) ON LO.ID = LOM.OBJECTID
JOIN 
    [PRD-PSP-docBrain].[dbo].[JobData] JD With(NOLOCK) ON LO.DOCUMENTID = JD.DocumentID
JOIN 
    [PRD-PSP-docBrain].[dbo].[TaskData] TD WITH(NOLOCK) ON JD.ID = TD.ParentID
JOIN 
    [PRD-PSP-docBrain].[dbo].[RecognitionData] RD WITH(NOLOCK) ON TD.ID = RD.ID
WHERE
    LOM.[Source] = 'MANUFAST_AVR_DNN_QA'
    AND LOM.[ScanDate] > '2018-10-01'
    AND LOM.[ScanDate] < '2018-10-16'
    AND RD.[ProcessorType] IN ('F05AM', 'F06', 'F08', 'F09', 'F11', 'F12A')

如果[ProcessorResult][ProcessorType],我想将= F05AM转换为日期时间;如果不是,那就按原样。

我尝试使用IF,但没有结果。

这是查询的方式:

enter image description here

2 个答案:

答案 0 :(得分:1)

最重要的一点是,您不能有一个有时是日期/时间,有时不是的列。列具有固定的类型。

您可以通过一些字符串操作将字符串转换为日期。这将创建一个 date 列:

<!DOCTYPE html>
<html lang="en">

<head>
    <title>The Net Ninja - CSS Flexbox</title>
    <link rel="stylesheet" type="text/css" href="style.css">
    <meta name="referrer" content="origin" />
    <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0">

</head>

<body>
    <div class="user-list">
        <div class="users-list-wrapper">
            <div class="users-list-card">
                <div class="users-list-card-header">
                    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAABSlBMVEUuWHH////7YCDxyaXktpKRXyzrwJwmWHOHXjWUXyglU23oupYeT2oLSGWYZz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VPUXj1udNjJJ5Iwu7xJ8tQl24CcYnlOWB5amjpyL1iTO6YM75eLLmowzyxC9VMQnlm/gKIH6+xzoWL3Uq4qSoxBH66cSpe4biEspyt8bvdluKEUzvCCQLBY8Ra6TVJbbiE8ptfrfbUoxgKhZKlbWf4oQYRwkIZflfDRHEGMGUM0ljy2zEnRmxlIhQvnMu8EuPMVVDX5WZqXQedwrWVjJCWX5s8oc7b4VLE+h2m3GnJ10lJZSnb0rcIaJoWdwpDLP0Ju4qgafEhKheZ5zmWBINpuwZfdQAz+JNiQSUghA1xxdMRuFhPnOAbzZeJGuAjlIRchiFh/nUBW7M90sqvtSEiPGM2h7NF4JlUMdiZuksJR8AIWqP90s0SLECKMNfs1S6n6L9uQIgRHr8luisgv02YqAxG2+T5oegYAiRs75ZixpSMNREA41ZWnuf2j0dQREiHZyFvVUw1IQCDfLOs3iTrUwBEqIGdXAWsKTgEPE4gLd2dpA4u5MESog0fff+vLHmUpr8b/D1aMy1xvn7d6B4Mjwh1tHj746Rw5rBbaZUvSvhbmepdHz2GCB0RpQFIdbRwZu3a42GSDi832isvX1zkAUdVlaElo7eHfAnjaYH77KCs5QpoaWe3Jva/yFZX8F/6KH/W/9l/vP/D/FK8XoQWqtiAAAAAElFTkSuQmCC"
                        alt="profile pic Nuri" />
                    <div>
                        <h2>John Doe</h2>
                        <h3>j.doe@test.nl</h3>
                        <p>Software-engineer</p>
                    </div>
                </div>
            </div>

            <div class="users-list-card">
                <div class="users-list-card-header">
                    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAABSlBMVEUuWHH////7YCDxyaXktpKRXyzrwJwmWHOHXjWUXyglU23oupYeT2oLSGWYZzb7VQCMWSP2zqrh5ukERmQhUGv7UAD6z6j7WxSWXyaLWCHL09n7VwDCy9KKUg9EaH7n3dVogpOcrLd3jp319/hWa3k6YXiRo6+wvMWmtL6GmqfY3uJBZn1mW1IRV3RScYZPWmCre1D+49qjckVGWWX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KlbWf4oQYRwkIZflfDRHEGMGUM0ljy2zEnRmxlIhQvnMu8EuPMVVDX5WZqXQedwrWVjJCWX5s8oc7b4VLE+h2m3GnJ10lJZSnb0rcIaJoWdwpDLP0Ju4qgafEhKheZ5zmWBINpuwZfdQAz+JNiQSUghA1xxdMRuFhPnOAbzZeJGuAjlIRchiFh/nUBW7M90sqvtSEiPGM2h7NF4JlUMdiZuksJR8AIWqP90s0SLECKMNfs1S6n6L9uQIgRHr8luisgv02YqAxG2+T5oegYAiRs75ZixpSMNREA41ZWnuf2j0dQREiHZyFvVUw1IQCDfLOs3iTrUwBEqIGdXAWsKTgEPE4gLd2dpA4u5MESog0fff+vLHmUpr8b/D1aMy1xvn7d6B4Mjwh1tHj746Rw5rBbaZUvSvhbmepdHz2GCB0RpQFIdbRwZu3a42GSDi832isvX1zkAUdVlaElo7eHfAnjaYH77KCs5QpoaWe3Jva/yFZX8F/6KH/W/9l/vP/D/FK8XoQWqtiAAAAAElFTkSuQmCC"
                        alt="profile pic Nuri" />
                    <div>
                        <h2>John Doe</h2>
                        <h3>j.doe@test.nl</h3>
                        <p>Software-engineer</p>
                    </div>
                </div>
            </div>

            <div class="users-list-card">
                <div class="users-list-card-header">
                    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAABSlBMVEUuWHH////7YCDxyaXktpKRXyzrwJwmWHOHXjWUXyglU23oupYeT2oLSGWYZzb7VQCMWSP2zqrh5ukERmQhUGv7UAD6z6j7WxSWXyaLWCHL09n7VwDCy9KKUg9EaH7n3dVogpOcrLd3jp319/hWa3k6YXiRo6+wvMWmtL6GmqfY3uJBZn1mW1IRV3RScYZPWmCre1D+49qjckVGWWXElW79y7x/XT3+2s/9q5KyhVvDo4tGWWSjmY6MhYD59fL87ulyXUj6ZShdW1f6vqz449H8lXTvcEHqx6x1aG3HalDZa0fyaTb8hmGob2Pu1MDhb0nBdWL9pYn9tqL4dET4h2GAXV7mo5CmYFL8f1P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JNiQSUghA1xxdMRuFhPnOAbzZeJGuAjlIRchiFh/nUBW7M90sqvtSEiPGM2h7NF4JlUMdiZuksJR8AIWqP90s0SLECKMNfs1S6n6L9uQIgRHr8luisgv02YqAxG2+T5oegYAiRs75ZixpSMNREA41ZWnuf2j0dQREiHZyFvVUw1IQCDfLOs3iTrUwBEqIGdXAWsKTgEPE4gLd2dpA4u5MESog0fff+vLHmUpr8b/D1aMy1xvn7d6B4Mjwh1tHj746Rw5rBbaZUvSvhbmepdHz2GCB0RpQFIdbRwZu3a42GSDi832isvX1zkAUdVlaElo7eHfAnjaYH77KCs5QpoaWe3Jva/yFZX8F/6KH/W/9l/vP/D/FK8XoQWqtiAAAAAElFTkSuQmCC"
                        alt="profile pic Nuri" />
                    <div>
                        <h2>John Doe</h2>
                        <h3>j.doe@test.nl</h3>
                        <p>Software-engineer</p>
                    </div>
                </div>
            </div>

        </div>
    </div>



    </div>
</body>

</html>

您只需要一个看起来像日期的 字符串,所以我会这样做:

select (case when ProcessorType = 'F05AM'
             then convert(date, '20' + right(ProcessorResult, 2) + substring(ProcessorResult, 3, 2) + left(ProcessorResult, 2))
        end)

答案 1 :(得分:0)

您可以在case子句中使用select语句来实现此目的,并进行一些stuff调用来处理DDMMYY的输入格式(替换{{ 1}}样式(如果您愿意的话)。

120

但是,最好不要在同一列中混合使用多种数据类型,因为在存在非日期值的情况下,您将无法以汇总或分析的方式对这些日期进行大量使用混在里面。