Posts by Fabiano Salles • 381 points
10 posts
-
0
votes2
answers35
viewsA: error when searching client
There are some problems in the code that are making it behave like this. The first thing, as Bernardo said in the comments is that you need to change the while(escolha!=3) for while(escolha!=0) in…
canswered Fabiano Salles 381 -
5
votes2
answers435
viewsA: How to join repeated values of an object array, only in an object of the same array?
You can put the ranks on a set to remove duplicates, convert it into an array and use the map function to generate the result in the format you need in a very elegant and brief way. let data = [ {…
-
2
votes3
answers100
viewsA: Error doing an INSERT in Postgresql database
You may not use a insert within the @Query. jpa does not allow, so the error. The correct way is to use the method peresist of EntityManager. For example: EntityManager em = getEntityManager();…
-
0
votes1
answer129
viewsA: How to use new in SQL?
You are mixing banco1 and banco2 in the update. Although it is possible, it is much easier to read and implement using the variables of NEW available within Trigger’s scope. Remove all references to…
-
3
votes2
answers84
viewsA: How many cases can you use on a switch?
Let’s list the mistakes and some suggestions: The name does not appear because you are reading a string and saving a char on scanf("%s", &sangue). Read the correct type, changing %s for %c and…
canswered Fabiano Salles 381 -
2
votes1
answer35
viewsA: I don’t know where I’m going wrong with store creation
The error as pointed out in the comments is that you are using simple quotes ( ' ) instead of the apostrophe ( ` ) to identify the name of the past. Another thing that’s not a mistake, but it’s a…
mysqlanswered Fabiano Salles 381 -
0
votes1
answer204
viewsA: Hello, I’m trying to do a data structures exercise in c, but there’s an error and I can’t find it. Follow the statement and the code
There are several errors in your code and, as you have not specified any in particular, we will step by step by each. Prototype of declared functions within the main function body You are declaring…
-
1
votes3
answers1107
viewsA: Add +1 every time you click the button?
Your logic is correct. As you didn’t list the add function, I decided to create one based on the code you posted. Follows a functional version of the counter. $(document).ready(function(){…
accountantanswered Fabiano Salles 381 -
2
votes3
answers35
viewsA: Take attribute value when page is loaded and select or modified
You need to view the idconta as soon as the page is ready. You are only configured the event, but #formantry is never initialized. See an example of how to proceed: function getIDConta(){ return…
jqueryanswered Fabiano Salles 381 -
4
votes2
answers203
viewsA: Query data with mask - SQL Server
Sqlserver does not support regular expressions by default, but an approximation with like is possible. For example: SELECT * FROM PATRIMONIO WHERE NUM_PATRIMONIO LIKE '___-____' It will bring the…
sqlanswered Fabiano Salles 381