Oracle 和 MIcrosoft SQL 的不同

RDBMS之SQL:SQL语言的各种方言的简介(MySQL/Hive SQL/PQL/OracleSQL/SQLite影响力排序)、主流语言的对比之详细攻略 RDBMS之SQL:SQL语言的各种方言的简介(MySQL/Hive SQL/PQL/OracleSQL/SQLite影响力排序)、主流语言的对比之详细攻略 目录 SQL语言的各种方言的简介 1、MySQL/Hive SQL/PQL/OracleSQL/SQLite影响力排序 MySQL、Hive SQL与Microsoft SQL Server在语法、数据类型、函数、运算符上的区别 SQL语言的各种方言的简介 请根据近十年的使用人数和影响力,对以下SQL语言进行排序,Hive S 阅读详情

还是有很多的不同,转贴如下:http://www.bristle.com/Tips/SQL.htm#Oracle%20Tips

 

Table of Contents:

  1. Oracle Tips
    1. SQL Tips
      1. SELECT * and more
      2. Materialized View
    2. PL/SQL Tips
    3. SQL Navigator Tips
    4. See Also
  2. MS SQL Server Tips
    1. SQL Tips
      1. Dynamic SQL in a Stored Procedure
    2. SQL Enterprise Manager Tips
      1. Keyboard Shortcuts
      2. SQL Generating SQL
    3. See Also
  3. Differences Between Oracle and MS SQL Server
    1. Concepts and Terminology
    2. Data Types
    3. Limits
    4. Operators
    5. Built-In Functions
    6. Differences in SQL Syntax
    7. Differences in SQL Semantics
    8. Differences in Managing Databases
    9. Differences in Managing Database Objects
    10. Differences in Managing Users
    11. Differences in Integration with MS ADO, RDO, etc.
    12. Miscellaneous Differences
    13. See Also

Details of Tips:

    • Oracle Tips

        • SQL Tips

          This section contains tips on standard SQL (Structured Query Language) statements in Oracle.

            • SELECT * and more

              Last Updated: 6/6/1999
              Applies to:  Oracle 7.3, 8 (and probably earlier versions)

              To select all columns of a table:

              	select * from table

              However, to select all real columns, plus a pseudo-column like "user":

              	select table.*, user from table

              The following does not work:

              	select *, user from table

              --Fred

            • Materialized View

              Last Updated: 1/7/2002
              Applies to:  Oracle 8+

              Oracle 8i introduced a new feature called a "materialized view".  You define it just like any other view, except that you add the keyword MATERIALIZED:

              	CREATE MATERIALIZED VIEW view_name

              A materialized view is like a combination of a table and a view.  Like a view, it is defined as a logical view into the data of one or more tables.  When you update the tables, subsequent queries of the view see the updated data.  However, like a table, its data is stored in the database.  Also, like a table, it is faster if you define indexes for it.

              A regular view is stored as a mapping of data from tables.  When you modify the data in the tables, the view is completely ignored.  When you access the view, it joins the data currently in the tables, and returns the data you requested.  A materialized view is stored as such a mapping along with a copy of the actual data from the tables.  When you modify the data in the tables, the view's copy of the data is also updated.  When you access the view, the data is drawn directly from the copy.

              Thus a materialized view makes table updates a little slower, but makes view queries much faster.  It also consumes additional space in the database.

              You could accomplish the same effect by defining an additional table instead of the view, and using triggers on the component tables to update it each time they are changed.  However, using a materialized view is more convenient, more efficient, and clearer to the next person who has to maintain your database.

              Thanks to Andy Glick for sending me a sample of a materialized view from his application!

              --Fred

        • PL/SQL Tips

          This section contains tips on PL/SQL statements -- the Oracle "procedural language" superset of SQL that you use to write stored procedures.

        • SQL Navigator Tips

          This section contains tips on the SQL Navigator tool by Quest Systems. It is a graphical front end to the Oracle database, allowing you to create, delete, view, and modify all Oracle objects: tables, views, stored procedures, etc.

        • See Also

          Last Updated: 6/6/1999
          Applies to:  Oracle 7.3+

          The following are good sources of info about Oracle:

          1. Koch, George, and Kevin Loney. Oracle 8, The Complete Reference.  Berkeley CA: For Oracle Press by Osborne McGraw-Hill, 1997.  ISBN 0-07-882396-X.
            This book includes introductory database concepts as well as a complete reference to Oracle SQL and PL/SQL statements.  The companion CD contains a complete copy of the book, so you can read it on-line, search it, etc.
          2. Any of the O'Reilly books.  I've been very impressed by all of the O'Reilly books since my early Unix and X-Windows days in the 80's, and they have a complete series on Oracle, covering PL/SQL, the standard packages, etc.

          --Fred

    • MS SQL Server Tips

        • SQL Tips

          This section contains tips on SQL (Structured Query Language) statements in MS SQL Server.

            • Dynamic SQL in a Stored Procedure

              Last Updated: 2/7/1999
              Applies to:  MS SQL Server 6.5+

              A typical tradeoff for a database application is dynamic SQL (SQL commands embedded in the application -- for flexibility) vs. stored procedures (pre-compiled SQL procedures stored in the database and invoked by name from the application -- for speed and control over what SQL statements get executed).   However, you can have the best of both worlds by using dynamic SQL inside your stored procedures.  In a stored procedure, you can use the EXEC statement to execute a string of SQL statements that you built dynamically in the stored procedure or read from the database or any other data source.

              Thanks to Steve Rhoads for this tip.

              --Fred

        • SQL Enterprise Manager Tips

          This section contains tips on the SQL Enterprise Manager tool. It is a graphical front end to the database, allowing you to create, delete, view, and modify all MS SQL Server objects: tables, views, stored procedures, etc.

            • Keyboard Shortcuts

              Last Updated: 6/20/1999
              Applies to:  MS SQL Server 7.0

              Here is a list of some of the more useful shortcut keys in SQL Enterprise Manager.

              KeyFunction
              F1Help on SQL Enterprise Manager
              Shift-F1Help on syntax of current SQL statement
              Ctrl-EExecute selected text in Query Analyzer
              Ctrl-RHide/show results pane in Query Analyzer

              Obviously, this list is far from complete.   Please feel free to mail me your favorite shortcuts.  I'll add to this list as time permits.

              See also: Windows Shortcut Keys

              --Fred

            • SQL Generating SQL

              Last Updated: 2/7/1999
              Applies to:  MS SQL Server 6.5+

              To automate tedious database maintenance chores, you can use SQL statements to generate SQL statements that do your maintenance for you.  For example, to change the permissions on all stored procedures in a database, you can use a SELECT statement like:

              	SELECT 'GRANT EXECUTE ON ' + name + ' TO PUBLIC
                      	GO'
                      	FROM sysobjects
                      	WHERE type = 'P'

              The output of this SELECT statement is a series of alternating GRANT and GO statements, one pair per stored procedures, for all stored procedures in the database.  Then you copy that output as your next set of commands and execute it. 

              Note:  Be sure to leave the line break before the word GO. It is required to start on a new line, after the GRANT statement.

              Thanks to Steve Rhoads for this tip.

              --Fred

        • See Also

          Last Updated: 6/6/1999
          Applies to:  MS SQL Server 6.5+

          The following are good sources of info about MS SQL Server:

          1. MS SQL Server books on the MSDN Library CD.

          --Fred

    • Differences Between Oracle and MS SQL Server

        • Concepts and Terminology

          Last Updated: 4/24/2001
          Applies to:  Oracle 7.3+, MS SQL Server 6.5+

          The following table shows some differences in concepts and terminology between Oracle and MS SQL Server:

          Concept/TermOracleMS SQL Server
          Database enginedatabasedatabase server
          Database (collection of tables)schemadatabase
          Roles/Groupsrolesgroups
          Database adminstrator account, database ownerdbasa, dbo
          Data about the databaseData Dictionary
          - one per server
          Database Catalog
          - one per database
          "master" database
          - one per server
          Blocks and extentsblocks and extentspages and extents
          Network softwareSQL*NetNet-library
          Data stream protocolTransparent Network Substrate (TNS)Tabular Data Stream (TDS)
          Case sensitivity of names of tables, columns, etc.case-insensitivedepends on character sort order, default is case-insensitive
          Synonymssupportednot supported
          Readonly transactionsupportednot supported

          --Fred

        • Data Types

          Last Updated: 6/6/1999
          Applies to:  Oracle 7.3+, MS SQL Server 6.5+

          The following table shows the corresponding data types in Oracle and MS SQL Server:

          Data TypeOracleMS SQL Server
          Fixed Length StringCHAR(n)
          - limit 2KB
          CHAR(n), CHARACTER(n)
          - limit 255 (6.5)
          - limit 8KB (7.0)
          Variable Length StringVARCHAR2(n), VARCHAR(n)
          - limit 4KB in a column
          - limit 32KB in a variable
          - VARCHAR is obsolete
          VARCHAR(n), CHAR VARYING(n), CHARACTER VARYING(n)
          - limit 255 (6.5)
          - limit 8KB (7.0)
          IntegerINTEGER, INTEGER(n), SMALLINTINTEGER (4 bytes),
          INT (4 bytes),
          SMALLINT (2 bytes),
          TINYINT (1 byte),
          BIT (1 bit)
          Fixed PointNUMBER, NUMBER(n), NUMBER(n,d),
          FLOAT, FLOAT(n), FLOAT(n,d)
          NUMERIC, NUMERIC(n), NUMERIC(n,d),
          DECIMAL, DECIMAL(n), DECIMAL(n,d),
          DEC, DEC(n), DEC(n,d),
          MONEY, SMALLMONEY
          Floating PointDECIMALFLOAT, FLOAT(n), DOUBLE PRECISION,
          REAL,
          DateDATEDATETIME, SMALLDATETIME, TIMESTAMP
          - TIMESTAMP auto-updated
          BinaryRAW(n)
          - limit 255 bytes
          BINARY(n), VARBINARY(n), BINARY VARYING(n)
          - limit 255 (6.5)
          - limit 8KB (7.0)
          Large StringLONG, LONG VARCHAR
          - limit 2GB
          - limit one per table row
          CLOB
          - limit 4GB
          TEXT
          - limit 2GB
          Large BinaryLONG RAW
          - limit 2GB
          - limit one per table row
          BLOB
          - limit 4GB
          IMAGE
          - limit 2GB
          Multi-byte charsNCHAR(n)
          NVARCHAR(n)
          NCLOB
          - same limits as CHAR, VARCHAR, CLOB
          NCHAR(n), NATIONAL CHAR(n), NATIONAL CHARACTER(n)
          NVARCHAR(n), NATIONAL CHAR VARYING(n), NATIONAL CHARACTER VARYING(n)
          NTEXT, NATIONAL TEXT
          - same limits as CHAR, VARCHAR, TEXT
          OS FileBFILE<not supported>
          Row Identifierimplicit ROWID column(use an IDENTITY column)
          Secure OS LabelMLSLABEL, RAW MLSLABEL<not supported>
          128-bit Unique Number
          (UUID, GUID)
          <not supported>UNIQUEIDENTIFIER (version 7.0 only)

          --Fred

        • Limits

          Last Updated: 6/14/2000
          Applies to:  Oracle 7.3+, MS SQL Server 6.5+

          The following table shows differences in limits of Oracle and MS SQL Server:

          DescriptionOracleMS SQL Server
          Columns per table1000250 (6.5)
          1024 (7.0)
          Row size unlimited1962 bytes (6.5)
          8060 bytes (7.0)
          - includes pointers, but not data, for TEXT and IMAGE columns
          LONG and LONG RAW columns per row1 (must be last column)unlimited (16-byte pointer per)
          LOB, TEXT, and IMAGE columns per rowunlimited (16-byte pointer per)unlimited (16-byte pointer per)
          Clustered indexes per table11
          Non-clustered indexes per tableunlimited249
          Columns per index1616
          Index row size2K bytes900 bytes
          Identifier Length30 chars30 chars (6.5)
          128 chars (7.0)
          Tables per SELECTunlimited16 (6.5)
          256 (7.0)
          Source code per stored procedure 64KB (6.5)
          250MB (7.0)
          Data type limits(see Data Types)

          --Fred

        • Operators

          Last Updated: 6/7/1999
          Applies to:  Oracle 7.3+, MS SQL Server 6.5+

          Most operators are the same in Oracle and MS SQL Server.  Here are some that differ:

          DescriptionOracleMS SQL Server
          String concatenationstring1 || string2string1 + string2

          --Fred

        • Built-In Functions

          Last Updated: 6/7/1999
          Applies to:  Oracle 7.3+, MS SQL Server 6.5+

          Oracle and MS SQL Server offer many of the same built-in functions.  For example, they both offer ABS, EXP, ROUND, UPPER, LOWER, AVG, COUNT, SUM, ASCII, etc.  The following table shows some of the corresponding functions that don't have the same name. For a more complete list, see "Migrating Oracle Applications to SQL Server"

          DescriptionOracleMS SQL Server
          Smallest integer >= nCEILCEILING
          ModulusMOD%
          Truncate numberTRUNC<none>
          Max or min number or string in listGREATEST,
          LEAST
          <none>
          Translate NULL to nNVLISNULL
          Return NULL if two values are equalDECODENULLIF
          String concatenationCONCAT(str1,str2)str1 + str2
          Convert ASCII to charCHRCHAR
          Capitalize first letters of wordsINITCAP<none>
          Find string in stringINSTRCHARINDEX
          Find pattern in stringINSTRPATINDEX
          String lengthLENGTHDATALENGTH
          Pad string with blanksLPAD,
          RPAD
          <none>
          Trim leading or trailing chars other than blanksLTRIM(str,chars),
          RTRIM(str,chars)
          <none>
          Replace chars in stringREPLACESTUFF
          Convert number to stringTO_CHARSTR, CAST
          Convert string to numberTO_NUMBERCAST
          Get substring from stringSUBSTRSUBSTRING
          Char for char translation in stringTRANSLATE<none>
          Date additionADD_MONTH or +DATEADD
          Date subtractionMONTHS_BETWEEN or -DATEDIFF
          Last day of monthLAST_DAY<none>
          Time zone conversionNEW_TIME<none>
          Next specified weekday after dateNEXT_DAY<none>
          Convert date to stringTO_CHARDATENAME, CONVERT
          Convert string to dateTO_DATECAST
          Convert date to numberTO_NUMBER(TO_CHAR(d))DATEPART
          Date roundROUNDCONVERT
          Date truncateTRUNCCONVERT
          Current dateSYSDATEGETDATE
          Convert hex to binaryHEXTORAWCAST
          Convert binary to hexRAWTOHEXCONVERT
          If statement in an expressionDECODECASE ... WHEN
          or COALESCE
          User's login id number or nameUID, USERSUSER_ID, SUSER_NAME
          User's database id number or nameUID, USERUSER_ID, USER_NAME
          Current userUSERUSER

          --Fred

        • Differences in SQL Syntax

          Last Updated: 3/21/2001
          Applies to:  Oracle 7.3+, MS SQL Server 6.5+

          The following table shows the different syntax used in Oracle and MS SQL Server for the same SQL operations:

          DescriptionOracleMS SQL Server
          Left Outer JoinWHERE column1 = column2(+)FROM table1 LEFT OUTER JOIN table2 ON table1.column1 = table2.column2

          Note:  The following syntax is also supported, but is no longer recommended:
          WHERE column1 *= column2
          Right Outer JoinWHERE column1(+) = column2FROM table1 RIGHT OUTER JOIN table2 ON table1.column1 = table2.column2

          Note:  The following syntax is also supported, but is no longer recommended:
          WHERE column1 =* column2
          Full Outer Join FROM table1 FULL OUTER JOIN table2 ON table1.column1 = table2.column2
          SELECT without FROMSELECT 'hello world' FROM DUALSELECT 'hello world'
          SELECT data into a tableCREATE TABLE AS SELECT ...SELECT ... INTO
          Intersection of 2 SELECTSSELECT ... INTERSECT SELECT ...SELECT ... WHERE EXISTS (SELECT ...)
          Subtraction of 2 SELECTSSELECT ... MINUS SELECT ...SELECT ... WHERE NOT EXISTS (SELECT ...)
          INSERT into a JOININSERT INTO SELECT ...Create a VIEW and INSERT INTO it.
          UPDATE data in a JOINUPDATE SELECT...Create a VIEW and INSERT INTO it.
          UPDATE one table based on criteria in another table<not supported>UPDATE table FROM ...
          DELETE rows from one table based on criteria in another table<not supported>DELETE FROM table FROM ...
          DROP a column from a table<not supported until Oracle 8i>ALTER TABLE table_name DROP COLUMN column_name
          Readonly VIEWCREATE VIEW ... WITH READONLYGRANT SELECT ...
          Save pointSAVEPOINTSAVE TRANSACTION
          Table lockLOCK TABLE...IN SHARE MODE SELECT...table_name (TABLOCK)
          Exclusive table lockLOCK TABLE...IN EXCLUSIVE MODE SELECT...table_name (TABLOCKX)
          Reserving index space PCTFREE=0FILLFACTOR=100
          Declaring a local variableDECLARE varname type;DECLARE @varname type
          Initializing a local variableDECLARE varname type := value;<not supported>
          Declaring a constantDECLARE varname CONSTANT type := value;<not supported>
          Assigning to a variablevarname := value
          SELECT value INTO varname
          SET @varname = value
          SELECT @varname = value
          Assigning to a variable from a cursorFETCH cursorname INTO varnameFETCH NEXT FROM cursorname INTO varname
          Declaring a cursorCURSOR curname (params)
          IS SELECT ...;
          DECLARE curname CURSOR FOR SELECT ...
          If statementIF ... THEN
          ELSIF ... THEN
          ELSE
          ENDIF
          IF ...
          BEGIN ... END
          ELSE BEGIN ... END
          While loopWHILE ... LOOP
          END LOOP
          WHILE ...
          BEGIN ... END
          Other loopsFOR ... END LOOP
          LOOP ... END LOOP
          <not supported>
          Loop exitEXIT, EXIT WHENBREAK, CONTINUE
          Print outputDBMS_OUTPUT.PUT_LINEPRINT
          Raise errorRAISE_APPLICATION_ERRORRAISERROR
          Statement terminatorSemi-colon (;)<none required>

          Thanks to Tom Johnston for catching a mistake in this tip. I had the FROM DUAL in the wrong column.

          --Fred

        • Differences in SQL Semantics

          Last Updated: 6/6/1999
          Applies to:  Oracle 7.3+, MS SQL Server 6.5+

          The following table shows some semantic differences between Oracle and MS SQL Server:

          DescriptionOracleMS SQL Server
          CommitExplicit COMMIT statement requiredAutomatic commit unless SET IMPLICIT_TRANSACTIONS ON
          Reading uncommitted dataDatabase does temporary internal  rollback to reconstruct most recently committed data for reader.Depending on options, reader as allowed to read uncommitted data, or is forced to wait for writer to commit or rollback.
          Releasing cursor dataCLOSE CURSOR releases all data.  You can't re-open.CLOSE CURSOR does not release data.  You must explicitly call DEALLOCATE CURSOR.  Until then, you can re-open the cursor.
          Implicit data conversion in a statement like the following where vc is a column of type VARCHAR2:

          SELECT * FROM person
          WHERE vc =123

          As each row is fetched from the table, an attempt is made to convert it to a number for the comparison with 123.  If any row contains a value that cannot be converted to a number, a runtime error occurs.The number 123 is converted to the string '123' once, and then the data is fetched from the table.  If any row contains a value that cannot be converted to a number, it simply doesn't match '123' and is skipped without any error.
          Conversion to NULLSetting a VARCHAR2 column to '' (the empty string) makes it NULL.Setting a VARCHAR column to '' makes it the empty string (not NULL).

          --Fred

        • Differences in Managing Databases

          Last Updated: 6/6/1999
          Applies to:  Oracle 7.3+, MS SQL Server 6.5+

          The following table shows some differences in how databases are managed in Oracle and MS SQL Server:

          DescriptionOracleMS SQL Server
          Model databaseNo model databaseNewly created databases inherit characteristics (users, etc.) from the special database named "model".

          --Fred

        • Differences in Managing Database Objects

          Last Updated: 6/6/1999
          Applies to:  Oracle 7.3+, MS SQL Server 6.5+

          The following table shows some differences in how database objects (tables, views, stored procedures, etc.) are managed in Oracle and MS SQL Server:

          DescriptionOracleMS SQL Server
          Fully qualified name[schema.]table
          [schema.]view
          [[[server.][database].][owner].]table
          [[[server.][database].][owner].]view
          Temp tablesPre 8i:  Temporary tables must be deleted explicitly

          8i+:  CREATE GLOBAL TEMPORARY TABLE

          #table -- Any table named starting with a pound sign (#) is automatically deleted when the user logs off or the procedure ends.
          ##table -- Same as above, except that the table is accessible to other users.
          Re-creating an objectCREATE OR REPLACE ...DROP ...
          CREATE ...
          Create view before dependent tables CREATE FORCE VIEWNot supported.  Tables used by view must exist before view can be created.

          --Fred

        • Differences in Managing Users

          Last Updated: 6/6/1999
          Applies to:  Oracle 7.3+, MS SQL Server 6.5+

          The following table shows some differences in how users are managed in Oracle and MS SQL Server:

          DescriptionOracleMS SQL Server
          Membership in groupsEach user can be a member of any number of groups.Each user can be a member of only one group other than "public".

          --Fred

        • Differences in Integration with MS ADO, RDO, etc.

          Last Updated: 6/6/1999
          Applies to:  Oracle 7.3+, MS SQL Server 6.5+

          The following table shows the different techniques used in Oracle and MS SQL Server to interact with MS ADO, RDO, etc.:

          DescriptionOracleMS SQL Server
          Return a recordset to the callerReturn a handle to a cursor.
          For more info:  See MS KB article Q174679.
          SELECT with no INTO clause;
          Multiple such SELECTs return multiple recordsets

          --Fred

        • Miscellaneous Differences

          Last Updated: 6/6/1999
          Applies to:  Oracle 7.3+, MS SQL Server 6.5+

          The following table shows miscellaneous differences between Oracle and MS SQL Server:

          DescriptionOracleMS SQL Server
          Generate unique numbersCREATE SEQUENCEIDENTITY column of a table
          Cascaded DELETEDELETE CASCADE ...(use triggers)
          Call a user-defined function from a SQL statement (as column of SELECT or expression in WHERE clause)supportednot supported

          --Fred

        • See Also

          Last Updated: 3/3/2001
          Applies to:  Oracle 7.3+, MS SQL Server 6.5+

          The following are good sources of info about differences between Oracle and MS SQL Server:

          1. Bowman, Judith S., Sandra L. Emerson, and Marcy Darnovsky. The Practical SQL Handbook. Addison-Wesley Publishing Company, 1993.  ISBN 0-201-62623-3.
            This book gives a good introduction to SQL, with a slight emphasis on Sybase, but with a useful summary in the back of the syntax for each of the SQL statements (SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, GRANT, REVOKE, etc.) for each of the major databases (Oracle, Sybase, DB2, Informix, Ingres, etc.)  The book pre-dates MS SQL Server, but the Sybase info is a good approximation since MS SQL Server is a derivative of Sybase.
          2. "Migrating Oracle Applications to SQL Server" on MSDN CD, and at MS TechNet Web site:
            http://www.microsoft.com/TechNet/sql/Tools/Sqldevkt/ORCL2SQL.asp
            Microsoft clearly intended this to be used in one direction only, but I've used it quite successfully to translate my SQL Server knowledge to Oracle as well.

 

三极管稳压电路仿真分析 Z1的负极连接到三极管的基极,三极管发射极E是输出,形成了一个射极跟随器,也就是说,E极的电压随着B电压变化而变化,但BE之间有一个压降,一般硅管0.7V左右,假设B极是6.7V,那E极就是6.7-0.7=6V,所以就有一个公式VOUT=Vz-Vbe,可以根据VOUT来选择合适的稳压管。从稳压管的SPEC中我们可以看到,Vz@Izt这个参数,指在Izt=20mA时,稳压管的稳压值Vz=5.1V,也就是说流过稳压管的电流在20mA以上,稳压效果最佳。三极管导通之后,E点电压会升高,当升高到Vbe。 阅读详情

相关推荐

电源芯片TPS54560典型应用电路及设计详解

TPS54560 是一款配有集成型高侧 MOSFET 的 60V、5A DC-DC转换器,输入电压范围7-60V,输出电压可通过外部反馈电阻设置成略低于输入电压的任意值。**所以,**R5=31.25KΩ、R6:10KΩ(常用值)时,即可设置输出电压为 3.3V。**所以,**R5=140KΩ、R6:10KΩ(常用值)时,即可设置输出电压为12V。设计 TPS54560 的输出电压时,主要通过外部反馈电阻网络来设置输出电压。因此,输出 3.3V ,输入电压24V时推荐的电感值为 8µH 至 10µH。

weixin_42306872的博客 1万+

ERROR: Catalog name is missing from checkpoint table specification c##goldengate.checkpoint

喝醉酒的小白 3052

Ansys Icepak:通过 ECAD 导入和非共形网格划分掌握电子冷却

通过将 Icepak 与 HFSS(用于高频电磁学)、Ansys Mechanical(用于结构分析)和 Ansys Fluent(用于流体动力学)等 Ansys 产品相结合,工程师可以在单个工作流程中仿真电子系统的完整行为,从热和电气动力学到机械和流体动力学。精细网格可以应用于关键区域,而在不太重要的区域使用较粗的网格,从而在不牺牲精度的情况下加快仿真速度。这些功能使 Ansys Icepak 成为从事复杂电子设计的工程师不可或缺的工具,可实现更精确的热分析并缩短开发时间。用于高效仿真的非共形网格划分。

jkh920184196的博客 1397

【ogg 】Error Messages(OGG-02563 to OGG-03520)

OGG-02563: Internal LCR column {0} formating error: {1}. Cause: Internal LCR column format error. Action: Contact Oracle Support. OGG-02564: Invalid opcode {0} {1} to format. Cause: Internal LCR col...

viviliving的专栏 7943

TEC控制器芯片 ADN8835 中文数据手册

ADN8835是一款高集成度的单芯片TEC控制器。它包括线性电压调节模块脉冲宽度调制(PWM) 电压调节模块和两个零漂移、轨到轨斩波放大器。线性控制器和PWM驱动器用于控制H桥配置中的内部功率MOSFET。通过测量热传感器反馈电压,并使用集成的运算放大器作为比例-积分-微分(PID)补偿器来调理信号,ADN8835通过TEC驱动电流,将连接至TEC模块的激光二极管或无源组件的温度稳定到编程的目标温度。

lu2289504634的博客 9560

安卓逆向实战:利用Frida-RPC自动化获取大麦演唱会数据

本文详细介绍了如何利用Frida-RPC技术实现安卓逆向自动化,以获取大麦演唱会数据。通过实战演示,从环境搭建、使用Frida动态分析定位核心签名算法,到封装为可复用的Python脚本,完整解析了自动化数据获取的技术路径与工程化思考。

cheese的博客 990

The cast to value type 'System.Decimal' failed because the materialized value is null. Either the re...

CurrentStock = db.BillEntry.Where(b =&gt; b.GoodsId == item.GoodsId).Sum(b =&gt; (decimal?)b.Qty) ?? 0, 出现这种错误是因为没有获取到数据造成的,可以使用三元判断来操作,注意Sum里的Qty应该可以为空,如果为空则返回0,否则正式返回。 也可以用下面的方法:  Curre...

weixin_34101784的博客 1713

【YOLO 系列】基于YOLO V8的智能车载交通标志识别系统【python源码+Pyqt5界面+数据集+训练代码】

本文详细介绍了基于YOLO V8构建智能车载交通标志识别系统的完整流程。从环境搭建、数据集准备、模型训练到PyQt5图形界面开发,提供了Python源码和实战代码,帮助开发者快速实现高精度、实时的交通标志检测应用,提升驾驶辅助系统的开发效率。

wdx012345的博客 972

mvc使用linq to sql进行sum统计遇到查询为null的问题

mvc linq to sql,linq to entity,sum,null 昨天写了段sum的统计语句, decimal sums sums = ( from fac in db.Apply where fa.state == 1 ...

weixin_30357231的博客 346

LPDDR4协议规范之 (四)命令和时序

LPDDR4协议规范之 (四)命令和时序命令真值表激活操作读写访问操作读前沿和后沿突发读取操作流程读操作时序写前沿和后沿突发写操作写入均衡(待更新) 命令真值表 激活操作 ACTIVATE命令由两个连续命令组成,Activate-1命令和Activate-2。通过在(Activate-1)时钟的第一个上升沿保持CS HIGH,CA0 HIGH和CA1 LOW来发出Activate-1命令,通过...

YJFeiii的博客 2万+

DPI — 业务识别技术

目录 文章目录目录DPI 的业务识别技术类型特征识别Protocol 特征Payload 特征关联识别行为识别 DPI 的业务识别技术类型 DPI 的关键技术是能够高效的识别出网络上的各种应用类型。 浅报文检测是通过端口号来识别应用类型的。如:检测到端口号为 80 时,则认为是 HTTP 协议。但实际上,为了应用的安全性考虑通常不会使用默认端口来暴露业务能力。此时采用 L2 ~ L4 层的传统检测方法已无能为力了。 而 DPI 技术与我们熟知的防病毒软件在某些方面比较类似,即:其能识别的应用类型必须是系统已

烟云的计算 3522

ORACLE和SQL语法区别归纳(二)

ORACLE和SQL语法区别归纳(二) var $tag=it; var $tag_code=4b45e341ea69ebc80ab74b8a48ddd03d; 流控制(Control-of-Flow)语言流控制语言控制SQL语句执行流,语句块以及存储过程。PL/SQL和Transa

Suningnet 1661

基于YOLO的智能视频监控异常行为检测研究:从算法原理到落地部署的全栈实践

本文深入探讨如何利用 YOLO(You Only Look Once)系列算法构建一套端到端的异常行为检测系统。文章首先回顾 YOLOv8 在时空建模上的局限,然后提出“YOLO-STA(Spatio-Temporal Aggregation)”轻量级改进框架,在公开数据集 UCF-Crime 上将异常行为检测的 mAP@0.5 从 72.4 提升到 80.1;接着给出完整训练、推理、部署的 Python 代码(PyTorch + TensorRT),并介绍如何仅用 4 GB 显存的 Jetson Xavi

博客 1411

《SQL初学者指南》——1.3 Microsoft SQL Server、Oracle和MySQL

本节书摘来自异步社区出版社《SQL初学者指南》一书中的第1章,第1.3节,作者: 【美】Larry Rockoff,更多章节内容可以访问云栖社区“异步社区”公众号查看。 1.3 Microsoft SQL Server、Oracle和MySQL SQL初学者指南尽管我的目标是介绍SQL的核心语言,因为它适用于所有的实现,但是我也会提供SQL语法的一些具体...

weixin_34256074的博客 128

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

数据库三大领导者(微软、IBM和Oracle)对Hadoop态度

当今关系数据 库三大领导者(微软、IBM和Oracle)对正在风靡全球的Hadoop 作出了三个不同的回应。 当Sybase和TeraData等数据仓库公司纷纷拥抱MapReduce的时候,微软仍在抵制。微软技术人员,威斯康星大学大学教授David J.DeWitt说:我们从不打算将Hadoop引入到我们的任何一款产品中。DeWitt缺乏兴趣并不惊奇,因为他是并行SQL数据库理论专家。在...

47

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

[Oracle,SQL Server,Sybase]迁移至MySQL

安装 MySQL GUI Tools,http://dev.mysql.com/downloads/gui-tools/。 然后就会有一个 MySQL Migration Toolkit,这东西可迁移 Oracle、Microsoft SQL Server、Microsoft Access、Sybase、MySQL 的数据。 由于 MySQL Migration Toolkit 是基于 Java 的,所以还需要安装 JRE。

小旭的技术博客 1888

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

oracle存储sql片段引入_强大的跨数据库访问组件 UniDAC使用教程:注释和SQL函数...

Universal Data Access Components (UniDAC)是一款通用数据库访问组件,提供了多个数据库的直接访问,如针对Windows的Delphi,C++Builder, Lazarus (以及 Free Pascal), Mac OS X, iOS,Android,Linux和64和32位的FreeBSD等等。我们将长期的经验集于这个小组件,提供统一的数据库连接访问(如o...

weixin_39645343的博客 215

深度对比Oracle与SQL Server

<br />一般的公司通常会在他们的信息系统架构中引入多种数据库平台,同时引入三到四种不同的RDBMS解决方案的中大型公司也并不少见,当然这些公司里面的DBA们通常也需要同时拥有管理多种不同平台的技能了。<br />只在一种平台上展开工作的数据库专家们也通常会期待着在他们的下一份工作中能学到点不一样的东西,那些有勇气的人们则愿意花时间、金钱和精力去学习新的东西,也有其他因为换了新公司或者是为了找新的工作而去学习新的系统的人们,毋庸置疑的一点就是公司老板和人力专家们会更加青睐于那些拥有多个领域经验的求职者。<

融雪专栏 1326

SQL查询去重以后活动总数

很多在W3C上都能找到,多看原码 SQL COUNT(DISTINCT column_name) 语法 COUNT(DISTINCT column_name) 函数返回指定列的不同值的数目: SELECT COUNT(DISTINCT column_name) FROM table_name COUNT(DISTINCT) 适用于 ORACLE 和 Microsoft SQL ...

七号空间 3054

Oracle 数据库中的 empty string 处理

跟 微软的数据库产品不一样, Oralce 把 空的string 自动替换为 Null所以下面的代码你可能考虑不一样的结果.create table suppliers( supplier_idnumber,supplier_name varchar2(100));Next, well insert two records into th

Montaque & DotNet 2118

sql锁和死锁

SQL 锁的使用 前言:本章讨论多个SQL语句同时执行的必要性和所需的基础设施。 锁 锁是数据库服务器用来控制数据被并行使用的一种机制。当数据库的一些内容被锁定时,任何打算修改(或者可能是读取)这个数据的用户必须等到锁释放。大部分数据库使用以下两种锁策略之一。 策略一:数据库的写操作必须向服务器申请并获得写锁才能修改数据,而读操作必须申请和获得读锁才能查询数据。多用户可以同时读取数据,而一个表(或其他部分)一次只能分配一个写锁,并且拒绝读请求直至写锁释放。 策略二:数据库的写操作必须向服务器申请并获得写锁才

asp_lilu的博客 331

SQL语句MSSQL.MySQL.Oracle.PostgreSQL不同用法

The database vendor implementations shown in examples below (Microsoft SQL Server, MySQL, Oracle, and PostgreSQL) are discussed in our upcoming book SQL in a Nutshell. There are a great many function ...

163

aix for sqlserver_深度对比Oracle和Sqlserver

深度对比Oracle和SQLserver数据库一般的公司通常会在他们的信息系统架构中引入多种数据库平台,同时引入三到四种不同的RDBMS解决方案的中大型公司也并不少见,当然这些公司里面的DBA们通常也需要同时拥有管理多种不同平台的技能了。只在一种平台上展开工作的数据库专家们也通常会期待着在他们的下一份工作中能学到点不一样的东西,那些有勇气的人们则愿意花时间、金钱和精力去学习新的东西,也有其他因为换...

weixin_39974400的博客 140

oracle 与 sql server 区别之08 操作系统的支持、版本和发行版

操作系统的支持 Microsoft SQL Server向来都从属于Windows大家族中的一员,要让Microsoft发布一个支持其它操作系统版本的可能性当然是小之又小的了。当前来说SQL Server可以在XP、Vista、Windows Server 2000、2003、2008上运行,同时也有针对于32位和64位版本Windows的数据库版本。 对Oracle来说,它支持多种不

snowfoxmonitor的专栏 1424

sysbase转oracle,[Oracle,MySQL,Sysbase] 迁移至SQL Server

目前未发现从DB2迁移至SQL Server的工具。http://www.microsoft.com/sqlserver/en/us/product-info/migration.aspx迁移工具:SQL Server Migration Assistant (SSMA) is a free supported tool from Microsoft that simplifies databas...

weixin_35878217的博客 147

SQL语句 拼接两行以上的行

select Power, [UserName]= stuff( ( select ',' + [UserName] from Customer t where Power = Customer.Power for xml path('') ) , 1 , 1 , ''), [password]= stuff( ( select ',' + [password] from Cust

ˉ-_lishk_-ˉ 1971
上一篇: Oracle 数据库中的 empty string 处理
下一篇: 大雨来临时想到的不是伞,而是Taxi
Montaque
博客等级 码龄26年 63粉丝 71原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址