我通過使用N'...'
知道我們可以在SQL Server中插入多語言數據。但我不知道如何使用它的參數。請幫我..如何使用N在SQL Server中插入多語言數據?
我的代碼是:
Alter proc proc_T_NewsAddUpdate
(
@Id bigint,
@Title nvarchar(500),
@Description nvarchar(1000),
@image nvarchar(200),
@DateOfNews datetime,
@CreatedBy bigint,
@ModifiedBy bigint,
@IsVisible int,
@IsDeleted int
)
as
if exists(select 1 from T_LatestNews where [email protected])
begin
Update t_LatestNews
set Titlle = [email protected],
DesCription = [email protected],
Image = [email protected],
dateOfnews = @DateOfNews,
modifiedDate = GETDATE(),
ModifiedBy = @ModifiedBy,
Isvisible = @IsVisible,
isdeleted = @IsDeleted
where
[email protected]
select 1
end
else
begin
insert into t_latestnews (Titlle, Description, Image, dateofnews, CreatedDate, ModifiedDate, CreatedBy, ModifiedBy, isvisible, isdeleted)
values(@Title, @Description, @image, @DateOfNews, GETDATE(), GETDATE(), @CreatedBy, @ModifiedBy, @IsVisible, @IsDeleted)
select 1
end
讓我粘貼我的代碼..那是行不通的............. – Ram
更改您想要將多種語言保存爲nvarchar類型的字段。應該讓你這樣做。 – AMember