靜宜大學資管系 楊子青 1 Working with Databases (II) 靜宜大學資管系 楊子青 2014.12.10.

Slides:



Advertisements
Similar presentations
App Inventor 建國科技大學 資管系 饒瑞佶 2010/10. App Inventor Google 發展 可應用瀏覽器建立一個 Android APP UI 設計 使用拼圖定義程式行為.
Advertisements

DIR-636L Support 10/100/1000Mbps 1WAN and 4LAN N 300Mbps Wireless Easy wizard setup Support mydlink cloud service mydlink apps (iOS/android) Support.
靜宜大學資管系 楊子青 1 Programming Your App’s Memory 靜宜大學資管系 楊子青
建立使用案例敘述 --Use Case Narrative
Instructor: Ching-Chi Lin 林清池 助理教授
BY OX. 檢視表與資料表的差異性 查詢 (query) 檢視表 (View) 的紀錄,是經由查詢 (query) 而來,而檢 視表的資料來源可以是單一資料表或是多資料表,甚 至其他檢視表 但檢視表中的紀錄只存在資料表中.
What is static?. Static? 靜態 ? class Test { static int staticX; int instanceX; public Test(int var1, int var2) { this.staticX = var1; this.instanceX =
Technical Information Services of NCCU 政 大 資 訊 設 備 ( Powered by NCCU Student Ambassadors ) 劉 謙 Harrison 游逸凡 Rudy 黃予涵 Shahad.
SIP Mobiity TA: 洪敏書
NCCU System 學校信箱. Let’s start from here: 從首頁的信箱入口進入.
在 Ad-hoc 網路中實現點對 點發送訊息與廣播訊息. 檔案下載  範例程式可在下列網址取得  DEMO 程式可在下列網址取得
五小專案 黃詩晴 章乃云. 目錄 計算機 智慧盤 拼圖 記憶大挑戰 數學題庫 心得 參考文獻.
邏輯設計 題目:3_8解碼器 姓名:李國豪 學號:B09322001.
Last modified 2004/02 An Introduction to SQL (Structured Query Language )
各種線上電子資源的特異功能 STICnet 的 SDI 專題訂閱服務 2003/4/28 修改. 無論校內外皆可使用。連線至
Web Meeting 使用教學 ─ 學生版.  如何即時線上與老師互動? 一. 瀏覽太御科技首頁 二. 安裝 JoinNet 在首頁的左手邊 1. 下載 JoinNet 進行安裝 JoinNet.
程式註解說明. 2 程式註解格式 塊狀註解 對檔案、 class 、 method 、資料結構、一段程式 …. 等程式區塊 做說明。 第一行的開頭必需為 “/*” 且沒有其他文字,最後一行的開頭 必需以 “*/” 做為結束,在中間每一行的開頭都必需是一個 “*” 。 單行註解 佔據一整行的說明。 以.
1 電算中心九十三學年第一學期 教學訓練課程活動(二) 課 名:電子郵件設定、使用方法及資料備份 講 師:電算中心 許惠佳小姐.
如何建立一個 swing 元件 -- 以 ImageComponent 為例 井民全. Step 1: 繼承 javax.swing.JComponent 要將你的元件秀在 frame 中. 元件必須是 Jcomponent 的一種. javax.swing.JComponent 你的元件 class.
1 MySQL 資料庫的使用 網頁資料庫的基礎 網頁資料庫的基礎 下載與安裝 MySQL 下載與安裝 MySQL 啟動 MySQL 伺服器 啟動 MySQL 伺服器 Web 介面的 MySQL 管理程式 Web 介面的 MySQL 管理程式 MySQL 建立資料庫 MySQL 建立資料庫 在 MySQL.
各種線上電子資源的特異功能 SwetsWise 的 alert, TOC alert 與 Favorites 2003/4/28 修改.
行政院國家科學委員會工程技術發展處自動化學門 * 試以國立成功大學製造工程研究所 鄭芳田教授 產學合作計畫 : 智慧預測保養系統之設計與實作 成果報告盤點為範例 國科會工程處專題計畫成果典藏 自動化學門成果報告盤點範例.
第三章 自動再裝載運用篇 使用時機:裝載計劃完成時,尚有剩餘空 間的情形,維持已固定計劃而繼續做裝載 最佳化。以支持次日裝載計劃而提前調整 作業模式。 裝載物品設定和裝載容器設定如前兩章介 紹,於此不再重複此動作,直接從裝載計 劃設定開始,直接從系統內定的物品和容 器選取所需.
1 單元四 個人化服務 Web of Science 利用指引. 2 個人化服務 Sign In 登入 My EndNote Web 使用 EndNote Web 者可登入 My Citation Alert 查看或修改先前設定的引用通告 My Saved Searches 查看或更改先前儲存過的檢索.
下載 Dev C++ Compiler. 網址 ding.php?groupnamehttp://sourceforge.net/project/downloa ding.php?groupname=dev-cpp & filename=devcpp _setup.exe.
國立聯合大學 資訊管理學系 陳士杰老師 SQL*Plus 與 iSQL*Plus 簡介. 國立聯合大學 資訊管理學系 資料庫系統課程 ( 陳士杰 ) 2 啟動 SQL*Plus 與 iSQL*Plus 方式 Windows 平台.
校外使用圖書館購置之資料庫 龍華大學圖書館. 讀者遠端認證 (RPA) 設定說明  透過圖書館架設完成的 RPA (Remote Patron Authentication) 讀者遠端認證代理主 機系統,讀者於校外或院外 可直接連線使 用本館所提供的資料庫。  若非使用本館電子資料,請勿設定此代理.
教材名稱:網際網路安全之技術及其應用 (編號: 41 ) 計畫主持人:胡毓忠 副教授 聯絡電話: 教材網址: 執行單位: 政治大學資訊科學系.
從此處輸入帳號密碼登入到管理頁面. 點選進到檔案管理 點選「上傳檔案」上傳資料 點選瀏覽選擇電腦裡的檔案 可選擇公開或不公開 為平台上的資料夾 此處為檔案分類,可顯示在展示頁面上,若要參加 MY EG 競賽,做品一律上傳到 “ 98 MY EG Contest ” 點選此處確定上傳檔案.
Chapter 17 Windows API 程式入門 VC++ 與 WindowsVC++ 與 Windows 建構遊戲設計的舞台 建構遊戲設計的舞台.
1 國立清華大學博碩士論文 全文系統 清華圖書館讀者服務組 分機: 論文轉檔說明 -- 上載論文操作說明 上載論文操作說明.
6-2 認識元件庫與內建元件庫 Flash 的元件庫分兩種, 一種是每個動畫專 屬的元件庫 (Library) ;另一種則是內建元 件庫 (Common Libraries), 兩者皆可透過 『視窗』功能表來開啟, 以下即為您說明。
資料庫實作教學.
個人資訊安全守則 授課:方順展(網站).
著作權所有 © 旗標出版股份有限公司 第 21 章 文件的權限及保護 功能設定. 本章提要 設定文件讀取權限 保護文件.
Hung-Hsiang WuWindows Processing Design1 Chapter 4 簡單視窗程式 表單與標籤的屬性 按鈕與編輯的屬性 設計簡單的應用程式 表單常用事件 一般鍵盤及滑鼠常見的事件 表單視窗間的呼叫 表單間資料傳送應用 專案選擇設定.
Management Abstracts Retrieval System; MARS 檢索操作.
1 Web of Science 利用指引 逢甲大學圖書館 參考服務組 單元六 個人化服務.
2010 MCML introduction 製作日期: 2010/9/10 製作人 : 胡名霞.
845: Gas Station Numbers ★★★ 題組: Problem Set Archive with Online Judge 題號: 845: Gas Station Numbers. 解題者:張維珊 解題日期: 2006 年 2 月 題意: 將輸入的數字,經過重新排列組合或旋轉數字,得到比原先的數字大,
Linguistics phonetic symbols. 先下載 IPA 字型檔案,執行安裝。 由於這個程式的字型目錄設定錯誤, 所以等重新開機時就會發現字型消失。 所以必須根據以下步驟來讓 Windows 加入 IPA 字型。
企業建置 ( 二 ) JSP 與 JDBC 井民全. 複習一下 JDBC 建立連線 Import java.sql.*;// for Connection, Statement … Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:book");
PHP+mySQL. 一、何謂 PHP? PHP 的全名為 Hypertext Preprocessor ,它是個被廣泛運 用在網頁程式撰寫的語言,尤其是它能適用於網頁程式的 開發及能夠嵌入 HTML 文件之中,它的語法和 C 、 Java 及 Perl 等語法相似。 PHP 的目的是為了能使網站開發者可以.
概念性產品企劃書 呂學儒 李政翰.
2 期末程式第一份報告 報告內容 撰寫此程式的動機和目的以及預期達到的功能和結果 流程圖 繼承關係 資料結構 檔案上傳格式 第 n 組程式流程圖.doc 組別於近日內公告 5/31, 17:00 前交.
組合語言與系統程式 軟體使用教學. 軟體下載及安裝 下載 到課程網頁下載 tw/~jiun/ 安裝 解壓縮後將 System Software 資料夾放在 D 槽 (C 槽版本放在 C 之下 )
Biological Science Database 個人化服務設定步驟. Biological Science Database 僅提供專題選 粹服務 專題選粹 (Alerts) :查詢後,提供儲存檢 索策略的功能,日後每週將符合條件的 更新資料,採 方式通知。每筆設定 最多每週可收到.
國立中興大學 學生學習歷程系統 教育訓練簡報. 一、基本說明 登入說明 如何使用「我的最愛」 2.
1 EndNote 金珊資訊有限公司 2 EndNote X2 新功能 新增標籤 (Tab) 視窗 線上查詢群組 智慧群組 (Smart Groups) 新增參考文獻類型 查詢全文 標示日期 以電子郵件傳送壓縮的 Library 檔案 Library.
如何使用 Yahoo Messenger Yahoo Messenger 雅虎即時通 讓你在第一時間內和上線的朋 友溝通!
Outlook 教學與研習 (1) - 設定及收發郵件 - 設定郵件規則 陽明大學資訊與通信中心 陳坤元 2006/03/27.
資料結構實習-六.
Android 遊戲設計模組 1 Android 開發環境建構 郭育政 東吳大學資訊管理系 涂昆源 萬能科技大學資訊工程系 余執彰 萬能科技大學資訊工程系 周建興 淡江大學電機工程系 林旭陽 東吳大學資訊管理系 教育部網路通訊人才培育先導型計畫 ─ 課程發展計畫.
OmniFile Full Text 系列資料庫 個人化服務設定步驟. 此相關資料庫之個人化服 務只提供類似專題選粹的 服務,然無提供 mail 通知的 服務,讀者可建立個人 ID , 並儲存檢索策略,日後需 再進入該資料庫,查詢檢 索策略之新進文章。 導航目次 個人化服務說明 個人帳號密碼申請 個人化服務設定.
Microsoft Excel.
著作權所有 © 旗標出版股份有限公司 第 14 章 製作信封、標籤. 本章提要 製作單一信封 製作單一郵寄標籤.
遠端北風資料庫 公佈時間: 2006/4/26 繳交截止時間: 2006/5/10. 作業目的 實作遠端資料庫瀏覽程式.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
This is Google Drive. It stores all the documents you have made here.
Building and managing class pages on our new Web site School Wires Training.
ABAP 楊子青 List2-1 Interactive List Techniques n Detail Lists –Program Flow in Detail Lists –Events –Page Headings –SET TITLEBAR n Data Transport n Selecting.
靜宜大學資管系 楊子青 1 Working with Databases (II) 靜宜大學資管系 楊子青
南台科技大學 資訊工程系 Arduino 與電腦端互動設計之三 報告人:洪賢麟 指導老師:李育強 日期: 2013/11/20 報告人:洪賢麟 指導老師:李育強 日期: 2013/11/20.
Subversion Tutorial Presenter: Ya-Lin Huang. Introduction 版本控制系統是什麼? 管理對資訊所做人為變動 程式設計師的工具之一 為何要使用版本控制系統? 促成有效率的團隊合作 使變動歷程能被追溯 2.
學校本位暨教師自我 專業進修研習規劃服務 教育訓練 指導單位:教育部 執行單位:全國教師在職進修資訊網 講 師:國立高雄師範大學進修學院教師生涯專業發展研究中心 曾子唐 專任研究助理 尤嬿琇 專任研究助理.
非同步互動式網頁程式設計 - 實作練習 I 資料表的 CRUD - 使用 HTML/CSS & JavaScript 報告人: Dennis ( 嚴志和 ) 日期: 2014/11/10.
Internet Technology Laboratory Department of Computer and Communication Kun Shan University  官方網站:
Objectives Create a folder in Google Drive.
Working with Databases (I) 靜宜大學資管系 楊子青
Presentation transcript:

靜宜大學資管系 楊子青 1 Working with Databases (II) 靜宜大學資管系 楊子青

靜宜大學資管系 楊子青 2 Fusion Tables 參考實例: Pizza Party with Fusion Tables for App Inventor 2 – A Fusion Table is a Google service to support the gathering, managing, sharing, and visualizing of data. Data are stored in multiple tables on Google‘s cloud (Google Drive 雲端硬碟 ). Individual tables can be merged if they contain a common column, and they can be easily visualized on maps and in various kinds of charts and graphs.

靜宜大學資管系 楊子青 3 1. Creating your own Fusion Table Creating your own Fusion Tables is as easy as creating a Google document. ( 請自行根據說明練習 ) 1. On the web, login to your Gmail account or any other Google service (e.g., Drive, YouTube). 2. Go to Google Drive and click the red Create button, you will see Fusion Table in the list of choices. Click Fusion Table. (If you do not see Fusion Table in the Google Drive Create menu, click Connect more apps. Scroll down until you find Fusion Table and click on it. Click the + Connect button, then click ok. Now, when you click on the Create button, Fusion Table should appear. If not, then you may need to contact your school's network administrator. See Troubleshooting section at the bottom of this page.) 3. You will be given a few different options for the new table. Select Create an empty table.

靜宜大學資管系 楊子青 4 Creating your own Fusion Table 4. You will see that the new table automatically comes with four columns. Change the column names for your Pizza app by going to Edit > Change Columns.You'll rename the four default columns to Date (type=Date), Name (type=Text), Pizza (type=Text), Drink (type=Text). Click save and then add a fifth column by going to the Edit > Add Column. Name this fifth column Comment (type=Text).. 5. Leave this window open so that you can come back and get the URL, which you'll need when you set up the properties of the WebViewer component in your app. 6. Click on the Share button (top right) to modify the table's permissions. For this tutorial, you can specify a few friends who will use the app. Only people who are explicitly given permission will be able to enter pizza party preferences through your app. (See note box immediately below this.)

靜宜大學資管系 楊子青 5 練習:建立以下 Fusion Table

靜宜大學資管系 楊子青 6 2. Determining your Fusion Table URL and Table ID To find your Fusion Table's URL: 1. In your browser, navigate to the new Fusion Table you just created. 2. Go to the menu and select Tools > Publish. 3. You'll see a notice saying: "This table is private and will not be visible". Click the blue link that says "Change Visibility". 4. In the list of "Who Has Access", click the blue "Change..." link next to "Private - Only people listed below..."

靜宜大學資管系 楊子青 7 Determining your Fusion Table URL and Table ID 5. Choose"Public on the Web" or "Anyone with the link". Either of these settings will work for this tutorial. In the future, you should decide this setting based on the sensitivity of your data. 6. Click the green Save button, then the blue Done button. 7. Back on the Fusion Table page, go to the menu bar and select Tools > Publish. Select the URL from the top text box (labeled "Send in an or IM"), copy the URL and return to App Inventor. You will paste the URL into the definition block for the TABLE_URL (see below). 8. You can find the Table ID by browsing to your table, then selecting File>About this table in the menu.

靜宜大學資管系 楊子青 8 練習:讀取 Fusion Table 網址

靜宜大學資管系 楊子青 9 練習:讀取 Fusion Table ID

靜宜大學資管系 楊子青 10 利用 WebViewer 元件查看 Fusion Table 內容

靜宜大學資管系 楊子青 11 程式碼及執行結果 Fusion Table 網址

靜宜大學資管系 楊子青 Getting an API Key In order to use the FusiontablesControl Component you need to acquire a Google Applications Programming Interface (API) key, an API Key. 1. Go to your Google APIs Console ( ) and log in with a google account if not already logged in. 2. On the left-hand menu, select the APIs & auth item. The top sub-item "APIs" should be selected. If not, select it. 3. In the list of APIs, scroll down to find the Fusion Tables API and click the toggle button to "on" (if it already says "on" then leave it as is.) 4. If prompted, read and agree to the terms of service. On the Devlopers Console API page you'll see that the on/off switch next to Fusion Tables API is now "On" and green.

靜宜大學資管系 楊子青 13 APIs: Fusion Tables API: ON ( 舊版 )

靜宜大學資管系 楊子青 14 APIs: Fusion Tables API: ON ( 新版 )

靜宜大學資管系 楊子青 15 Getting an API Key 5. Go back to the menu on the left of the screen and select the Credentials sub-item under "APIs & auth. 6. Your API key will show up under "Public API Access". If you do not see an API key, click the red button "Create New Key" and then click the "Android Key" button in the popup box. Don't worry about the pop-up box asking about SHA keys. Just click the "Create" button. Your API Key will be show up under "Key for Android applications". You will need set the "API Key" property of the Fusiontables Control component in any app that you make that uses Fusion Tables. (More info below.)

靜宜大學資管系 楊子青 16 API Key

靜宜大學資管系 楊子青 17 新增資料至 Fusion Table

靜宜大學資管系 楊子青 18 初始設定程式碼 ForgetLogin() Method: Discards the user's account name, forcing them to re-authenticate when accessing a Fusion Table. This will prompt the user to login to their Google account and give permission to the app to access the Fusion Table. This authentication step will happen only once when the app first tries to access the Fusion Table.

靜宜大學資管系 楊子青 19 新增資料程式碼

靜宜大學資管系 楊子青 20 用行動裝置測試,並使用自己的 Gmail 帳號登入,到雲端硬碟看 Table

靜宜大學資管系 楊子青 21 判斷是否新增資料成功

靜宜大學資管系 楊子青 22 判斷是否新增資料成功 如果成功, result 第一行為 rowid

靜宜大學資管系 楊子青 23 重新用行動裝置測試,並使用其他 的 Gmail 帳號登入,則新增失敗

靜宜大學資管系 楊子青 24 增加個別使用者可以進行編輯

靜宜大學資管系 楊子青 25 將使用者輸入的資料新增到資料庫

靜宜大學資管系 楊子青 26 SQL 改用變數之程式碼

靜宜大學資管系 楊子青 27 資料庫查詢

靜宜大學資管系 楊子青 28 資料庫查詢程式碼,用行動裝置測試

靜宜大學資管系 楊子青 29 補充:如果要讓任何人都可異動資料 onents/storage.htmlhttp://ai2.appinventor.mit.edu/reference/comp onents/storage.html –When using a Service Account, end-users do not need to login to use Fusion Tables, your service account authenticates all access. you create credentials and a special "Service Account Address" which you obtain from the Google APIs Console. You then tell the Fusion Table Control the name of the Service Account address and upload the secret key as an asset to your application and set the KeyFile property to point at this file. Finally you check the "UseServiceAuthentication" checkbox in the designer.

靜宜大學資管系 楊子青 30 建立 Service Account

靜宜大學資管系 楊子青 31 Service Account 及自動下載公開金鑰檔案 (.p12)

靜宜大學資管系 楊子青 32 至 App Inventor 2 ,加入.p12 檔,並 設定 FusionTableControl 元件的 KeyFile

靜宜大學資管系 楊子青 33 設定 FusionTableControl 元件的 ServiceAccount 及勾選 UseServiceAuthentication