>
>Exactamente la funcion que ando buscando es SET NEAR, la busqueda que estoy realizando utilizo el LIKE "%%" como Ud. lo indica, pero necesito que al NO conseguir ningun vinculo me traiga el mas cercano, como funciona el SET NEAR antiguamente.
>
Entonces trae toda la tabla a un cursor, crea un indice y allí si utiliza set near.
DB_SYSPRO = SQLCONNECT('CompanyB', "usuario", "123")
vSql = SQLEXEC(DB_SYSPRO, "select Bank, Description from ApBank", "tblBank")
=SQLDISCONNECT(DB_SYSPRO)
set near on
select tblBank
index on Bank tag i1
claro que eso toma tiempo si la tabla es grande.
c.x.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only