MATLAB DATABASE TOOLBOX RELEASE NOTES Guida Utente Pagina 642

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 684
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 641
7 Functions — Alphabetical List
7-212
results{1}
ans =
35000
The maximum sales volume in December is 35,000.
Close the database connection conn.
close(conn)
Call a Stored Procedure with Input and Output Arguments
Define a stored procedure named getSuppCount that counts the number of suppliers for
a specified city by executing this code. This procedure has one input argument cityName
and one output argument suppCount. This code assumes you are using a Microsoft SQL
Server database.
CREATE PROCEDURE getSuppCount
(@cityName varchar(20),
@suppCount int OUTPUT)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
SELECT @suppCount = count(supplierNumber)
from suppliers where City = @cityName;
END
GO
Create a Microsoft SQL Server database connection conn using the JDBC driver. For
details, see “Connecting to a Database”. Then, call the stored procedure getSuppCount
using the database connection conn. The input argument inputarg is a cell array
containing the string 'New York'. The output Java data type outputtype is numeric.
inputarg = {'New York'};
outputtype = {java.sql.Types.NUMERIC};
results = runstoredprocedure(conn,'getSuppCount',inputarg,outputtype)
results =
Vedere la pagina 641
1 2 ... 637 638 639 640 641 642 643 644 645 646 647 ... 683 684

Commenti su questo manuale

Nessun commento

Minuteman Smart Up Series manuels

Manuels d'utilisation et guides de l'utilisateur pour Alimentations sans interruption (UPS) Minuteman Smart Up Series.
Nous fournissons des manuels en pdf 2 Minuteman Smart Up Series à télécharger gratuitement par type de document : Manuel de l'utilisateur






Plus de produits et de manuels pour Alimentations sans interruption (UPS) Minuteman

Modèles Type de document
MBK-E Series Manuel de l'utilisateur   Minuteman MBK-E Series User`s manual, 2 pages
Endeavor Manuel de l'utilisateur   Minuteman Endeavor User`s manual, 17 pages
AT1200 Manuel du propriétaire   Minuteman AT1200 Owner`s manual, 14 pages
BP192RTXL Manuel de l'utilisateur   Minuteman BP192RTXL User`s manual, 12 pages
Continuous Power Series Manuel de l'utilisateur   - Parker Sweeper, 12 pages
Pro 2200r Informations techniques   Minuteman Pro 2200r Technical information, 50 pages
MCP 10001 Spécifications   Minuteman MCP 10001 Specifications [en] , 27 pages
Continuous Power Series Manuel de l'utilisateur    Minuteman Continuous Power Series User`s manual, 44 pages
Pro 2200r Spécifications   Minuteman Pro 2200r Specifications, 125 pages