ibatis can t query the data, the database does, and SQL can find out

Updated on technology 2024-03-16
16 answers
  1. Anonymous users2024-02-06

    resultmap="loginuser"Wrong should be resultmap="user"There is also such a write,The SQL that is tracked out is in the form of a stored procedure,Compare egg pain,select userid, username, password from t user where username= username and password= password Personally like select userid, username, password from t user where username=‘$username$' and password=‘$password$'

  2. Anonymous users2024-02-05

    In the case of mysql, it may be a problem with the character set. Check out the database link configuration? Inside.

    Generally accommodating.

  3. Anonymous users2024-02-04

    I encountered this problem with the same problem, it has been solved, mine is because this statement has been changed before the ** record has been changed, so the same sql two places can not be found in one can not be found, it is recommended to check the previous ** carefully.

  4. Anonymous users2024-02-03

    What is PARS, and is your data source oracle's?

  5. Anonymous users2024-02-02

    Yes, it should be JDBC connection character set reason does not correspond to mysql character set, Chinese problem.

  6. Anonymous users2024-02-01

    It is possible that the JDBC driver does not support this kind of SQL script.

  7. Anonymous users2024-01-31

    I've encountered it before, and it's the configuration file after mysql installation to specify the encoding format.

    mysqld]

    character-set-server=utf8 and restart mysql.

  8. Anonymous users2024-01-30

    The pre-code of this question is: suppose there are two tables of the same structure in a, and b; In addition, if you say "the priority output data in Table B and Table A are data in the same block of data", it is assumed that the conditions of the determined data are the same. col_1 =

    If the above conditions are met, try the following statement:

    Select *from B, where (select Col 1 from B) late picking.

    All of the Alliance.

    Select *There is no from A (select Col 1 from B).

    Hope it helps :)

  9. Anonymous users2024-01-29

    You post the method you wrote that calls this SQL statement, I guess it's parameterclass="user"Question: You use the user model for the parameter class here, but when you call it, is it the model type? Maybe you gave a hashmap. You check and see.

  10. Anonymous users2024-01-28

    object1 in is not the corresponding parameterclass="object1"It's an alias, and object1 needs to redefine the receive type additionally.

    That's fine, and if you use a namespace, remember to set it in the configuration file.

  11. Anonymous users2024-01-27

    list list = (list) "", object1);

    Is the name wrong?。。。 Missing a t?

    listlist = (list) "", object1);

    So what?

  12. Anonymous users2024-01-26

    I'm more depressed than you, I found out that there are two records in the list, but I can't read them. The result is 2

  13. Anonymous users2024-01-25

    Yes, this kind of problem, in fact, lz, you can just write a test method and try it, and you will know it.

  14. Anonymous users2024-01-24

    if exists select from where id object_id(n'[dbo].[Your table name].')and objectproperty(id, n'isusertable') 1)

    drop table dbo].[Your table name].'Heh, delete it.

  15. Anonymous users2024-01-23

    It may be that the database data character set and the connection dataset do not match.

  16. Anonymous users2024-01-22

    There is a problem with the SQL writing, send it out and take a look.

Related questions
6 answers2024-03-16

The structure of the storage is the main basis for classifying the types of copy databases. In today's Internet, databases are usually divided into two categories, namely relational and non-relational databases. >>>More

6 answers2024-03-16

The prospect of learning UI is good, and there are many training institutions, so the local people may choose to visit and understand the real teachers and educational strength of the school before making a choice. Share the general development of the UI, I hope it will be useful to you. >>>More

11 answers2024-03-16

The deletion operation in the data is irreparable, sometimes the data in the data table may be deleted due to misoperation, or the database crashes for other reasons, and all the data is lost, especially when there is a large amount of useful data in the database, then it is impossible for you to enter the data again from the beginning, this is the role of the backup database, back up the database, when the above situation occurs, you can restore the previous database through the backup file.

9 answers2024-03-16

You can make an information query system, if you haven't done it before, it is recommended to use ASP to write it first, this is relatively simple, even people who do not have a basic knowledge of network programming can get started in a short period of time. The written web program can be called on the network, and different permissions can be set for different users. In this way, you can achieve the function you want, but this is only the basic, and you should learn more deeply to achieve more complete functions. >>>More

10 answers2024-03-16

The database is generally composed of many tables, for example, the school builds a database, which can build a student table (including the student's name, age, student number, class, date of birth), a teacher table (including the teacher's name, age, teaching class, teaching category), a report sheet (including the student's student number, and the grades of each subject), etc. These are the ways in which the files are stored in the database, and try to make sure that the items in a table are closely related and have the same attributes, if this condition cannot be met, a table must be built (the redundancy of the built table has 4 levels). In order to meet the user's query needs, we also need to make a number of views, for example, you can make a view of his items have the name of the student, age, grades of each subject, and the teacher of each subject, etc., we can also export new items according to the existing items, for the purpose of simplicity, for example, the view can add an average grade, we add different permissions and roles to each view, and provide it to different people to query to protect the security of the database. >>>More