Use %MVR
For example:
Class dc.test Extends %Persistent
{
Index ibar On bar;
Property bar As %String(COLLATION = "MVR");
ClassMethod Test()
{
d ..%KillExtent()
&sql(insert into dc.test(bar)
select '00123AB' union
select '12345AB')
d $system.SQL.TuneTable($classname(),$$$YES), $system.OBJ.Compile($classname(),"cu-d")
f args="00123AB","123AB" d ##class(%SQL.Statement).%ExecDirect(,"select * from dc.test where bar=?",args).%Display() w !!
}
}Result:
USER>d ##class(dc.test).Test() ID bar 1 00123AB 1 Rows(s) Affected ID bar 1 00123AB 1 Rows(s) Affected
- Log in to post comments