SELECT split_part(domain_name, '.', 1) AS site_name FROM websites;
因此,我知道这需要在一个次级选择,但我不知道我错过了什么。我的select/subselect查询如下。UPDATE websites SET domain_name = site_name || '.mynewdomain.com' FROM (SELECT split_part(domain_nameWHERE domain_name LIKE '
在数据库A中,表需要MerchantID,并且可以通过使用查询(Select MerchantID from Merchant_Location where LocationID=‘Select’)从数据库INSERT INTO A.dbo.Merchant_Category (MerchantCategoryID, MerchantID)
SELECT MerchantLocationCategoryID