如何使用wamp计算mysql中的列

时间:2014-03-23 13:51:10

标签: mysql wamp

我如何使用wamp计算我的表列 我试过这个,但没有任何作用。我搜索了任何地方,但没有wamp示例

My database = maw
My table = mist2

ID/Name/Gender/
2 /foo / M
1 /foo1/ F

2 will be the output

result = stmt.executeQuery("SELECT COUNT(*)FROM information_schema.COLUMNS WHERE mist2 AND maw");

result = stmt.executeQuery("SELECT count(*) FROM information_schema.`COLUMNS` C WHERE table_name = 'mist2'AND TABLE_SCHEMA = 'maw'");

result = stmt.executeQuery("SELECT COUNT(AccountNumber) WHERE mist2");

0 个答案:

没有答案