Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ayuda con un SELECT
Message
 
To
23/07/2007 14:54:36
Luis Parada
Prosoft´s de Venezuela, C.A.
Valencia, Venezuela
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01242816
Message ID:
01242968
Views:
17
>
>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
Map
View

Click here to load this message in the networking platform