简体   繁体   English

MySql 数据库连接

[英]MySql database connectivity

I've written code to insert data in mysql database successfully compiled it on cmd and my database along with table is also ready.我已经编写了在 mysql 数据库中插入数据的代码,在 cmd 上成功编译了它,我的数据库和表也准备好了。 I want to know the further steps so that can understand whether my record has inserted or not in mysql我想知道进一步的步骤,以便了解我的记录是否已插入 mysql

If your code is doing as expected, and there is no error, then the values should be inserted.如果您的代码按预期运行,并且没有错误,则应插入值。

Steps to check whether everything is working fine or not:检查一切是否正常的步骤:

  • Go to your database and run this query :转到您的database并运行此query

     SELECT * FROM tableName
  • Run the program and insert some data.运行程序并insert一些数据。

  • Again go to your database and run this query :再次转到您的database并运行此query

     SELECT * FROM tableName

If there are changes appeared according to the data inserted, it means your program is working fine.如果根据插入的数据出现变化,则说明您的程序运行正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM