Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with the like in a sql sentence
Message
From
02/08/2003 11:21:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
02/08/2003 11:14:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00816192
Message ID:
00816195
Views:
24
>Hello, i'm trying to use the like sentence in a query but it displays a message error: Function argument value, type or count is invalid.
>
>This is the sql:
>
>SELECT Hardware.codigo, Hardware.host, Hardware.piso,;
>  Usuarios_cia.codigo, Usuarios_cia.nombre, Usuarios_cia.telefono,;
>  Oficina.codigo, Oficina.nombre, Oficina.direccion, Sucursal.codigo,;
>  Sucursal.nombre, Sucursal.direccion, Modelos.codigo, Modelos.descripcion,;
>  Dispositivo.codigo, Dispositivo.descripcion;
> FROM helpdesk!hardware, helpdesk!usuarios_cia, helpdesk!oficina,;
>  helpdesk!sucursal, helpdesk!modelos, helpdesk!dispositivo;
> WHERE Hardware.usuario = usuarios_cia.codigo;
>   AND Usuarios_cia.oficina = oficina.codigo;
>   AND Oficina.sucursal = sucursal.codigo;
>   AND Hardware.modelo = modelos.codigo;
>   AND Modelos.dispositivo = dispositivo.codigo;
>   AND Hardware.host like '%100%';
> ORDER BY Hardware.codigo
>
>
>How can i fix this?
>Thanks

Without the like line does it work right ?
If so is Hardware.host datatype is not character ?
If problem is really there try :
AND trans(Hardware.host) like '%100%';

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform