|
#1
|
|||
|
|||
Si, te paso el link a la SAP HELP
Comparing Strings To find out whether the value of a column matches a pattern, use: SELECT ... WHERE <s> [NOT ] LIKE <f> [ESCAPE <h>] ... The condition is true if the value of the column <s> matches [does not match] the pattern in the data object <f>. You can only use this test for text fields. The data type of the column must be alphanumeric. <f> must have data type C. You can use the following wildcard characters in <f>: % for a sequence of any characters (including spaces). _ for a single character. For example, ABC_EFG% matches the strings ABCxEFGxyz and ABCxEFG, but not ABCEFGxyz. If you want to use the two wildcard characters explicitly in the comparison, use the ESCAPE option. ESCAPE <h> specifies an escape symbol <h>. If preceded by <h>, the wildcards and the escape symbol itself lose their usual function within the pattern <f>. The use of _ and % corresponds to Standard SQL usage. Logical expressions elsewhere in ABAP use other wildcard characters (+ and *). You cannot use LIKE in the ON condition of the FROM clause. |
#2
|
|||
|
|||
Ok, gracias pero haciendo dos select a la LFA1, una con el % y otra con _ para que salgan cosas distintas, me devuelve los mismos mismos registros.
Que puedo estar haciendo mal? por que esto me parece bastante interesante y util a la hora de optimizar consultas. Gracias de antemano. Saludos. Edito: tienes toda la razón del mundo, lo estaba probando mal estaba poniendo algo que me devolvia lo misma. gracias nuevamente. Úlima edición por jarabas fecha: 27/06/11 a las 14:01:01. |
Herramientas | Buscar en Tema |
Desplegado | |
|
|