You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sql-tools/添加image.sql

31 lines
1.0 KiB

1 year ago
--<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
IF EXISTS (SELECT 1 FROM sysobjects WHERE name = 'PInsertObjectImage' AND type = 'P')
BEGIN
DROP PROCEDURE PInsertObjectImage
END
GO
CREATE PROCEDURE PInsertObjectImage
(
@ObjectType VARCHAR(30), --<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
@ObjectId BIGINT, --<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
@ImageName VARCHAR(50), --ͼƬ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
@ImageUrl VARCHAR(200) --ͼƬ<EFBFBD><EFBFBD>ַ
)
AS
BEGIN
INSERT INTO TObjectImage(FObjectType,FObjectId,FImageName,FImageUrl)
VALUES(@ObjectType,@ObjectId,@ImageName,@ImageUrl)
END
GO
EXEC PInsertObjectImage 'WeChatApp',1,'Image1','133570300204611449.jpg'
EXEC PInsertObjectImage 'WeChatApp',1,'Image2','152940188035191562.jpg'
EXEC PInsertObjectImage 'WeChatApp',1,'Image3','245083528050135303.jpg'
EXEC PInsertObjectImage 'WeChatApp',1,'Image4','564166001346514633.jpg'
EXEC PInsertObjectImage 'WeChatApp',1,'Image5','704419746959654004.jpg'
EXEC PInsertObjectImage 'WeChatApp',1,'Image6','774451114783562010.jpg'
EXEC PInsertObjectImage 'Company',1,'Avatar','logo.jpg'
EXEC PInsertObjectImage 'WeChatApp',1,'Logo','logo.jpg'