我有以下选择语句:
`Dim rsGetInvoiceContact
Dim rsGetInvoiceContact_numRows
Set rsGetInvoiceContact = Server.CreateObject("ADODB.Recordset")
rsGetInvoiceContact.ActiveConnection = MM_conn_to_EFACs_STRING_ap
rsGetInvoiceContact.Source = "SELECT * from "& ActinicPersons &" p WHERE p.[Contact ID] = " + Replace(rsGetInvoiceContact__vInvoiceID, "'", "''") + ""
rsGetInvoiceContact.CursorType = 0
rsGetInvoiceContact.CursorLocation = 2
rsGetInvoiceContact.LockType = 1
rsGetInvoiceContact.Open()
rsGetInvoiceContact_numRows = 0
"& FormatStr(rsGetInvoiceContact.Fields.Item("Address Line 1").Value) + ", " + (rsGetInvoiceContact.Fields.Item("Address Line 2").Value) &"',`
稍后在我的脚本中,我将地址行 1 与地址行 2 相加。当地址行 2 具有 NULL 值时,就会出现问题。如何从 select 语句中替换它,以便如果只有地址行 1 有值,它仍将插入数据库而不是留下空白单元格。
谢谢