MySQL 的@var 引用的方式,不是如同你想像那樣.故跑出非你預期的結果.以你的 select @lessonCnt:=perweekno*weeksno...
create table ithelp160923m ( id smallserial primary key , m float not null );...
create table ithelp160812_dep ( dep_id smallserial primary key , dep_name text...
先建立一個 table create table ithelp160701 ( id integer not null , col1 char(1) n...
<pre class="c" name="code">建立一個輔助Table CREATE TABL...
<pre class="c" name="code">CREATE TABLE ithelp1505...
M記網站就有啦: https://msdn.microsoft.com/zh-tw/library/ee790872%28v=azure.10%29.aspx