Query Vs UniQuery
Posted: Wed 23 Mar 2016 16:17
Dears
I wrote a simple program with Tquery component (from builtin component on D7) conected to interbase database as below
SELECT CHD_CODE, CHD_NAME, CHD_FAMILY, CHD_STATUS, GRP_CODE
FROM CHILDS_T Childs_t
Where (1=1)
And (CHD_FAMILY Like "%'+Edit1.Text+'%")
And (CHD_STATUS=1)
Order by CHD_CODE
It works fine on IB database, But shows error on when I use Unidac TUniQueryat line
CHD_FAMILY Like "%'+Edit1.Text+'%"
what is my error?so what is your suggest?
I wrote a simple program with Tquery component (from builtin component on D7) conected to interbase database as below
SELECT CHD_CODE, CHD_NAME, CHD_FAMILY, CHD_STATUS, GRP_CODE
FROM CHILDS_T Childs_t
Where (1=1)
And (CHD_FAMILY Like "%'+Edit1.Text+'%")
And (CHD_STATUS=1)
Order by CHD_CODE
It works fine on IB database, But shows error on when I use Unidac TUniQueryat line
CHD_FAMILY Like "%'+Edit1.Text+'%"
what is my error?so what is your suggest?