Normally I insert data in MySql in one table (sales) example.
string query = "INSERT INTO sales (price, user, date) " +
"VALUES(" +
"'" + txtQuant.Text + "'," +
"'" + txtLog.Text + "'," +
"NOW())";
But now I change my mind and decided to separately create another table which will I name settings for column price. this is my first time to do this so I have no idea what to do.
I tried this.
string query = "INSERT INTO sales (user, date), settings (price) " +
"VALUES(" +
"'" + txtLog.Text + "'," +
"NOW())", "'" + txtQuant.Text + "'";
but it doesn't work.