Why does SQL workbench always return a row full of null values in every query?

纵然是瞬间 提交于 2020-08-24 05:08:31

问题


Every query has a final row with an asterisk beside it and null values for every field? Why does this show up? I cant seem to find an explanation for it. Even putting a WHERE clause doesnt seem to get rid of it. Is this only happening to the MySQL implementation alone?


回答1:


It is for inserting a new row, you enter the values there.




回答2:


Are you sure it's not just the data entry row. Usually when viewing the table data in something like Workbench or SQLYog, it will display the rows of data, plus a blank row at the end that is used for adding new data. It will show NULL for each column if that is the default value for that columns data type



来源:https://stackoverflow.com/questions/22075237/why-does-sql-workbench-always-return-a-row-full-of-null-values-in-every-query

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!