我有一份动态内容调查表,并且我有需要使用 SQL 进行推广的控件?
我试图从表中选择Questionnaire
并运行存储在下面“PrepopulateContentSQL”列中的 SQL 语句。查询返回单个值。
前任:
Select name from Agency
我的桌子Questionnaire
:
QuestionID int
Required bit
Data_Type int
Control_Type int
Data_Choices nvarchar
Data_Max_Length int
Question_Group_Id int
Question_Label nvarchar
Question_Order int
PrepopulateContentSQL nvarchar
PrePopulated bit
我在想也许是一个功能?
Select
QuestionID, Required, Control_Type, Data_Choices,
GetPrepopulated(PrepopulateContentSQL) As PreValue
From
Questionnaire