This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
LEFT JOIN T_picture ON t_card_info_upload.id = T_picture.FileId
WHERE T_picture.FileId IS NULL;
先将没有数据的基本信息状态改为5减少检索内存
6.将联众分段表数据导入我们的分段表中 在assort_id前'lz'来区别我们现在的分段
7.导入基础数据查询sql
SELECT
id,
patno,
patname,
outdate,
outdeptname,
patsex,
indate,
indeptname,
fource,
'Z:\pic\' + CAST(id AS VARCHAR(50)) AS path
FROM
t_card_info_upload
WHERE
state !=5
8.使用sqlserver自带的导入工具将对应的文件表导入到我们文件表中,这是导入sql
Select a.FileId as patient_id,'lz'+PicKind as assort_id,a.PicName as scan_pagem,'lz' as source_flag from dbo.T_picture a left join t_card_info_upload t on t.id=a.FileId AND t.state=0