Most voted "mysql" questions

Mysql is a relational database management system (RDBMS) that functions as a server, and provides access to multiple users simultaneously. Your source code is available under the GNU General Public License.

Learn more…

10,264 questions

Sort by count of

  • -1

    votes

    1

    answer

    29

    views

    How do I execute a resale value calculation action for a product in PHP code itself?

    My table produto there is the column valor_revenda that simply takes the value from the column valor_compra of the same table and carries out the 50% resale calculation on the value of the product.…

  • -1

    votes

    1

    answer

    74

    views

    Query works on phpmyadmin, but not on Laravel

    Galley, Laravel helps a lot, but when he wants to complicate too, it really does. I did a query and tested in phpmyadmin and it works normally, but insert the query in my project Laravel gives…

  • -1

    votes

    1

    answer

    36

    views

    Sub-volume and average in Mysql

    Given 3 tables of a database that simulates a sense of Brazilian municipalities: CREATE TABLE municipio (cod_mun char (7), nome varchar(50), cod_uf(2), CONSTRAINT municipio_pk PRIMARY KEY (cod_mun),…

  • -1

    votes

    1

    answer

    27

    views

    I’m trying to create a form using PHP with PDO database

    When I put the information in the form and click to insert the following error appears: SQLSTATE[42000]: Syntax error or access Violation: 1064. Code below: php connection. <?php…

  • -1

    votes

    1

    answer

    30

    views

    Mysql Array Search Field

    I need to create a search field for my program in BD in Mysql. I want to create a search that lists names of people, but ignoring duplicated letters in names or special characters, such as…

  • -1

    votes

    1

    answer

    103

    views

    I can’t display DB data in front-End

    Hello, I need your help because I’m stuck in the following scenario: I created a system where the user can register a link and the name of a site, until then everything was quiet, then soon after I…

  • -1

    votes

    1

    answer

    39

    views

    How to perform this query correctly ? [Mysql]

    In front of this database: Employee(employee, employee name, street, city) Works(employee, code company, salary) Company(code company, company name, city) Manager(employee,…

  • -1

    votes

    1

    answer

    225

    views

    Save checkbox fields that are displayed through a WHILE with PHP?

    I have a table called tarefas_check, when there is record in this table, the record is displayed this way: <!-- Checklist --> <form method="post" action=""> <?php $sql = "SELECT *…

  • -1

    votes

    3

    answers

    376

    views

    MYSQL Insert into com Where not exists

    Staff I have the following situation, I have 2 tables, I need to insert in table B data that are in table A, however, should be checked if the data that are in table A already exist in table B, if…

  • -1

    votes

    1

    answer

    26

    views

    MYSQL how to query in 2 tables where the query may or may not exist in one of the tables?

    Good people!! I’m new around here, I need your help. I need to create a table/query where the records made by the user returns. This user may or may not be part of a working group, where several…

  • -1

    votes

    1

    answer

    254

    views

    java.sql.Sqlexception: Column 'id' not found

    My code to search in the BD by id. The class is ContatoDao: //Pesquisa por id public Contato pesquisaId(int id) { String sql = "select nome from contatos where id = "+id; Contato contato = null; try…

  • -1

    votes

    2

    answers

    78

    views

    Place a condition on an exported function in Node.js

    I’m having a pertinent question, I’m starting a project in Lectron where I have to make the connection with two different banks, one location and the other in clouds, in my Node js code, I have two…

  • -1

    votes

    2

    answers

    50

    views

    Select HTML using database data is empty

    I did select and in the database when register the value of select saved normally, but at the time of selection is not displayed. CODE <label…

  • -1

    votes

    2

    answers

    106

    views

    How to invert rows and columns in an HTML table populated by the return of a query?

    I need to fill a table in my HTML page with data returned from a database query. The problem is that the TABLE tag fills in line by line, from left to right. In the layout I need to use, I need each…

  • -1

    votes

    1

    answer

    27

    views

    How do I get other users to access my Mysql database with Python?

    I am making a program with the mysql-Connector-python library and I wanted other users to be able to access it, because when I start the program on another machine appears the following error:…

  • -1

    votes

    1

    answer

    95

    views

    Loop to a select with multiple Ids

    I intend to make a query to the database with the filter of several Ids, to return the corresponding lines. I am trying this way: First send the ids through js: function update_estado() { var…

  • -1

    votes

    3

    answers

    91

    views

    Edit only one table row

    I am trying to create an option to edit the information of a table I created using PHP and Mysql, I even managed to create the option and the data can be modified, the only problem is that if I…