I'm trying to modify the value of the column, but it doesn't work.
desc bbs;
+--------------+---------------+------+-----+---------+-------+
| | Field | Type | Null | Key | Default | Extra |
+--------------+---------------+------+-----+---------+-------+
| | bbsID | int | NO | PRI | NULL | |
| | bbsTitle | varchar(20) | YES | | NULL | |
| | userID | varchar(20) | YES | | NULL | |
| | bbsDate | datetime | YES | | NULL | |
| | bbsContent | varchar(2048) | YES | | NULL | |
| | bbsAvailable | int | YES | | NULL | |
| | count | int | YES | | NULL | |
+--------------+---------------+------+-----+---------+-------+
Here, the value of the count column is
mysql> update bbs set count = count+10 where bbsID=1;
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1 Changed: 0 Warnings: 0
I modified it to (I heard it was successful)
If you select it, it says null.
mysql> select userID, count from bbs where bbsID = 1;
+---------+-------+
| | userID | count |
+---------+-------+
| | gildong | NULL |
+---------+-------+
1 row in set (0.00 sec)
What's wrong with this?
mysql
© 2024 OneMinuteCode. All rights reserved.