Home Database Mysql Tutorial 嵌入式的SQL程序设计

嵌入式的SQL程序设计

Jun 07, 2016 pm 05:37 PM
Embedded programming

嵌入式的SQL程序设计 RED_CURSOR red_CURSOR CONNECT TO servername.databasename AS connection_name USER LOGIN.PASSWORD CONNECTION connection_name DISCONNECT connection_name SQL CONNECT TO red.book AS con1 USER sa; 38 EXEC SQL CONNECT TO red.t

嵌入式的SQL程序设计

RED_CURSOR red_CURSOR CONNECT TO servername.databasename AS connection_name USER LOGIN.PASSWORD CONNECTION connection_name DISCONNECT connection_name SQL CONNECT TO red.book AS con1 USER sa; 38 EXEC SQL CONNECT TO red.test AS con2 USER sa; 39 EXEC SQL DISCONNECT CON1 40 EXEC SQL DISCONNECT CON2 SQL BEGIN DECLARE SECTION 47 INT CompanyID SQL END DECLARE SECTION "WHERE CompanyID=:CompanID" SQL SELECT FROM Company 58 WHERE Address=:ADDRESS stmt_name FROM :hvar SQL BEGIN DECLARE SECTION "insert into company values(?,?)" companynameSQL END DECLARE SECTION PRINTF("输入单位代码:") 81 SCANF("%S",COMPANYID) 82 PRINTF("输入单位名称:") 83 scanf("%s",companyname) 84 EXEC SQL PREPARE stmt FROM :stmtcon 85 EXEC SQL EXECUTE stmt USING:COMPANYID,:COMPANYNAME SQL BEGIN DECLARE SECTION SQL END DECLARE SECTION 91 EXEC SQL SELECT COMPANYNAME INTO :COMPANYNAME cursor_name INSENSITIVE SCROLL CURSOR FOR select_stmt column_list 定义游标,并打开SQL COMPANYID,COMPANYNAME SQL OPEN C1 SQL BEGIN DECLARE SECTION COMPANYNAMESQL END DECLARE SECTION (SQLCODE==0) 122 { 123 EXEC SQL FETCH C1 INTO :COMPANYID,:COMPANYNAME 124 PRINTF("%S,%S",COMPANYID,COMPANYNAME) 125 } SQL BEGIN DECLARE SECTION "SELECT COMPANYID FROM COMPANY WHERE COMPANYNAME=?"; "北京怡神公司"; SECTION SQL SELECT_STATEMENT; SQL 139 PREPARE SELECT_STATEMENT FROM :SZCOMMAND SQL OPEN CON_CURSOR USING:SZCOMPANYNAME; 142 EXEC SQL FETCH CON_CURSOR INTO:SZCOMPANYID;

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Which one has better prospects, Java or embedded? Which one has better prospects, Java or embedded? Oct 24, 2023 am 09:32 AM

Java and embedded systems are both very important technical directions in the computer field, and they each have different application scenarios and development prospects. Below I will analyze the prospects of Java and embedded systems from the aspects of job market, technology development, industry needs and development trends.

Using C++ to realize remote control function of embedded system Using C++ to realize remote control function of embedded system Aug 25, 2023 pm 05:24 PM

Using C++ to realize the remote control function of embedded systems With the rapid development of the Internet of Things, embedded systems are becoming an indispensable part of our daily lives. For developers of embedded systems, how to implement remote control functions is an important issue. Using the C++ programming language, we can easily implement the remote control function of the embedded system. This article will introduce how to use C++ to write code to implement this function, as well as give some sample code. First, we need to prepare some hardware equipment. As an embedded system,

Chai Mi's first 28cm ultra-thin design! Embedded sweeping and mopping robot SpaceMaster Master series released Chai Mi's first 28cm ultra-thin design! Embedded sweeping and mopping robot SpaceMaster Master series released Oct 21, 2023 pm 05:17 PM

Thanks to technological innovations in the intelligence and cleaning performance of sweepers, integrated sweeping and mopping robots have increasingly become a key new appliance standard in global home decoration in recent years, and their trend of being front-loaded and embedded in home decoration has become more obvious. In order to promote the progress of the industry and help consumers solve core pain points such as embedding and water and electricity renovations, Zhumi Technology, as the world's leading brand of smart cleaning appliances, recently brought a new way of solving problems and innovatively launched a new product with a height of only 28cm. Ultra-thin base station embedded sweeping and mopping integrated robot - Space Master Master series (hereinafter referred to as "Zhunmi Space Master Master Series"), this product combines five major Chumi pioneering technical advantages and cutting-edge embedded design concepts to achieve a leading position in the world. The upgrading and leap of the industry will help more families realize their

SPARKLE launches Intel Arc embedded graphics card, providing support for up to 5 years SPARKLE launches Intel Arc embedded graphics card, providing support for up to 5 years Apr 22, 2024 am 11:52 AM

According to news from this site on April 22, SPARKLE Technology announced the launch of Intel Arc embedded graphics cards, including PCIe versions of A310E, A380E and MXM versions of A350E and A370E graphics cards, with a commitment to support services for up to 5 years. SPARKLE Intel ArcA380E Graphics Card IA30GC-TN4E This graphics card has a TBP (note on this site: TotalBoardPower) of 75W. It adopts a dual-slot single-fan design, 6GBGDDR6 video memory, provides 1 HDMI and 3 DisplayPort interfaces, and has 5-year support services. SPARKLE Intel Ruixuan ArcA380E half-height graphics card IA30GBL-TN4E this half-height graphics card T

Arduino responds to the impact of the end of support for the embedded system Mbed: an alternative has been found and the first beta version will be released before the end of the year Arduino responds to the impact of the end of support for the embedded system Mbed: an alternative has been found and the first beta version will be released before the end of the year Jul 26, 2024 am 11:32 AM

According to news from this website on July 26, Arm issued an announcement on July 9, announcing that it will terminate support for the open source embedded operating system MbedOS in July 2026, and will no longer continue to maintain it. At that time, the Mbed website will be archived and will no longer be available. Build projects through online tools. This news caused widespread discussion in the embedded development community and affected Arm-supported projects such as micro:bit, Arduino and Raspberry Pi. The Arduino company published a blog post on July 24, stating that it started looking for alternative solutions a few years ago, so it joined the Zephyr project in 2023 and became a silver member of the project, and found a good alternative in ZephyrOS. Ardu

Go Embedded Applications Go Embedded Applications Apr 08, 2024 pm 02:42 PM

Embedded Applications in Go The Go language is suitable for the development of embedded applications, which usually run on constrained devices. To get started, you need to install the Go toolchain and TinyGo compiler. The embedded Go application code structure includes main.go (entry point), board.go (hardware board code) and app.go (application logic). TinyGo supports cross-compilation to various embedded hardware boards, such as Arduino UNO. As an example, an application written in Go can blink an LED on an Arduino UNO.

Aetina launches Arc A380E embedded graphics card: single-slot, half-height design, 50W power consumption Aetina launches Arc A380E embedded graphics card: single-slot, half-height design, 50W power consumption Apr 26, 2024 am 08:04 AM

According to news from this website on April 25, Aetina, an AIoT equipment manufacturer, today launched the Intel ArcA380E embedded graphics card with a single-slot, half-height design, model IA380E-QUFL, and provides a five-year long-term product supply commitment. This graphics card uses the Intel ArcA380E core, with 8 Xe cores and 128 Intel XMX cores, with a base frequency of 2000MHz and an acceleration frequency of 2250MHz. It has 4.096TFLOPS computing power and supports hardware ray tracing. It is equipped with 96bit wide 6GBGDDR6 video memory and is suitable for edge applications. Visual computing and artificial intelligence reasoning. This graphics card adopts a half-height single-slot design, consumes only 50W, and can draw power directly from the PCIe slot without external power.

How to use C++ to implement low-power standby function of embedded systems How to use C++ to implement low-power standby function of embedded systems Aug 26, 2023 pm 06:19 PM

How to use C++ to implement the low-power standby function of embedded systems 1. Introduction With the rapid development of the Internet of Things and embedded systems, the demand for low-power consumption is becoming more and more important. The low-power standby function is a very important function for embedded systems. It can minimize power consumption when the system is idle to save power. This article will introduce how to use C++ language to implement the low-power standby function of embedded systems and provide corresponding code examples. 2. Implementation Principle The low-power standby function of embedded systems mainly relies on hardware support. one

See all articles