Posts by Thales • 136 points
7 posts
-
0
votes1
answer78
viewsA: How to find a text inside a file with Regular Expression
The command that worked was this: CommandText = ((\s*'.*'|\s+\+)*) It resulted in the matchabaixo: CommandText = 'select USUARIO_ATIVO, USUARIO_NOME, USUARIO_SENHA from TABELA_US' + 'UARIO' With…
-
0
votes1
answer78
viewsQ: How to find a text inside a file with Regular Expression
Good morning I need to create a script to normalize some DFM type files (Delphi form file) where I need to change the expression Commandtext to SQL.Text and whatever you have after = stay () object…
-
3
votes1
answer301
viewsA: Regular expression to validate text
I don’t know how it’s done in C#, but Regular Expression could be like this: ^(Jan|Fev|Mar|Abr|Mai|Jun|Jul|Aug|Set|Out|Nov|Dez)\/(Seg|Ter|Qua|Qui|Sex|Sab|Dom)$ that she can validate for you…
-
1
votes1
answer438
viewsA: How to create a select in Firebird?
If I understand your question, you want something like this: select campo1, campo2, campo3 from tabela order by 2 /*ordenado pelo índice das colunas*/
-
3
votes2
answers405
viewsA: NOT EXISTS in update?
Searching the web I found the INSERT command ... ON DUPLICATE KEY UPDATE, it is intended to insert if the record does not exist and update if it already exists, based on the key: INSERT INTO teste…
-
0
votes1
answer68
viewsA: Jsf pages from entities class net Beans Foreign key
You need to use the attribute of f:Selecteditems "itemLabel", in it you can use an expression, using var to write whatever you want. Example: Remember that in your selectOneMenu value has to be the…
-
2
votes0
answers192
viewsQ: How to treat exceptions with JTA?
I have a project where I am using JPA with JTA. In the method gravar, I put the note @Transactional(Transactional.TxType.REQUIRED) and in it there is a call to a validation method that can cast an…