02-11-20, 10:30 PM
(آخر تعديل لهذه المشاركة : 02-11-20, 10:32 PM {2} بواسطة asemshahen5.)
هذا طلبك باذن الله :
الكود حسب جدول بقاعدة البيانات :
PHP كود :
DECLARE @x int;
set @x= (Select ROW_NUMBER() OVER(ORDER BY (SELECT 1)))
DECLARE @TBooksNames TABLE (id int, ChrCol nvarchar(255));
insert into @TBooksNames(id,ChrCol)values(@x,(CHAR(243)))
set @x += 1
insert into @TBooksNames(id,ChrCol)values(@x,(CHAR(240)))
set @x += 1
insert into @TBooksNames(id,ChrCol)values(@x,(CHAR(245)))
set @x += 1
insert into @TBooksNames(id,ChrCol)values(@x,(CHAR(246)))
set @x += 1
insert into @TBooksNames(id,ChrCol)values(@x,(CHAR(242)))
set @x += 1
insert into @TBooksNames(id,ChrCol)values(@x,(CHAR(241)))
set @x += 1
insert into @TBooksNames(id,ChrCol)values(@x,(CHAR(248)))
set @x += 1
insert into @TBooksNames(id,ChrCol)values(@x,(CHAR(250)))
set @x += 1
insert into @TBooksNames(id,ChrCol)values(@x,'ال')
DECLARE @CharXT nvarchar(255);
set @CharXT = (CHAR(240)) + '|' + (CHAR(241)) + '|' + (CHAR(242)) +'|' + (CHAR(243)) +
(CHAR(245)) + '|' + (CHAR(246)) + '|' + (CHAR(248)) +'|' + (CHAR(250));
select @CharXT;
select *
from @TBooksNames
where ChrCol like '%[^' + @CharXT + ']%' escape '|'
الكود حسب جدول بقاعدة البيانات :
PHP كود :
DECLARE @CharXT nvarchar(255);
set @CharXT = (CHAR(240)) + '|' + (CHAR(241)) + '|' + (CHAR(242)) +'|' + (CHAR(243)) +
(CHAR(245)) + '|' + (CHAR(246)) + '|' + (CHAR(248)) +'|' + (CHAR(250));
select @CharXT;
select *
from TBooksNames
where ChrCol like '%[^' + @CharXT + ']%' escape '|'
سبحان الله وبحمده سبحان الله العظيم و الحمد لله ولا اله الا الله والله اكبر
