function GetTable(TableName, SourceName, FieldName,
Code: string): string;
begin
result := '';
try
with cdsSQL do
begin
Close;
Data := null;
CommandText := ' select ' + FieldName +
' from ' + TableName +
' where ' + SourceName +
' = ''' + Trim(code) + '''';
Open;
if recordcount = 1 then
result := FieldByName(FieldName).asstring
else
result := '';
end;
finally
cdsSQL.Close;
end;
end;
博客涉及SQL、表格及代码相关信息技术内容,但具体信息缺失。推测围绕SQL操作表格及代码编写等方面。
4311

被折叠的 条评论
为什么被折叠?



