我有这个 sql 过程语句,但由于变量而失败:
CREATE PROCEDURE iskanje(@iskani_niz)
BEGIN
SELECT A.ime, A.opis, B.kategorija
FROM file as A, cathegory as B
WHERE A.ime LIKE '%'+@iskani_niz+'%'
OR A.opis LIKE '%'+@iskani_niz+'%'
OR B.kategorija LIKE '%'+@iskani_niz+'%';
END