to determine if there is no data point
Ser1 = Series ([5,4,3,2,-1],index=[' A ', ' B ', ' C ', ' d ', ' e '])
print (ser1)
output result:
a 5
b 4
C 3
D 2
e -1
Retrieving data by index
Print (ser1[' C '])
output result:
3
If you have some data in a Python dictionary, you can create a series from that data by passing the dictionaryCreate a series from a dictionary
Sdata = {}
sdata[' a '] = 5
sdata[' c '] = ten
sdata[' B '] = 4
sdata[' d '] =-2
ser2 = Series (sdata)
print (ser
Dataframe in Spark SQL is similar to a relational data table. A single-table or query operation in a relational database can be implemented in Dataframe by invoking its API interface. You can refer to the Dataframe API provided by Scala.The code in this article is based on the Spark-1.6.2 document implementation.First, the generation of Dataframe objectsSpark-sql can generate Dataframe objects with other Rdd objects, parquet files, JSON files, hive tables, and a JDBC connection to other relation
21. check the local node db2 list node direcotry 22. node deserialization db2 uncatalog node node_name www.2cto.com 23. database cataloguing db2 catalog db db_name as db_alias at node node_name 24. view the database catalog db2 list db directory 25. connect to the database db2 connect to db_alias user user_name using user_password 26. database deserialization db2 uncatalog db db_alias 27. export data db2 export to myfile of ixf messages msg select * from tb1 28. import Data db2 import from myfil
View the database version:
Select * from V $ version;
1 Oracle Database 11g Enterprise Edition Release 11.1.0.7.0-64bit Production2PL/SQL release 11.1.0.7.0-Production3 "core11.1.0.7.0production"4tns for Linux: Version 11.1.0.7.0-Production5 nlsrtl version 11.1.0.7.0-Production
------------------
You can execute owminst. PLB to create
Ceate wmsys and related objests$ ORACLE_HOME/rdbms/admin/owminst. PLB
The method is as follows:
Http://www.
1. Each object class has a CREATE function of its own public (equivalent to Create_func), and the Init function.The 2.create function returns its own type, and the Init function is called automatically when the Ceate function is called.3. If it is a scene object class, also public a static cocos2d::scene* Createscene (), the function, the return value is the scene typeIf we're going to present a moving man,1. Define an object class that inherits from
Learn about MYSQL Stored Procedure 1.
Stored Procedure is a set of SQL statements for specific functions. it is compiled and Stored in the database. You can run a stored procedure by specifying its name and providing parameters (if the stored procedure has parameters. Stored procedures are an important object in databases. any well-designed database application should use stored procedures.
Although commonly used terms are stored procedures, MySQL actually implements two types. apart from store
Composition more readable and easier to name we is going to ceate a compose function we can use to avoid have To manually nest our transducer calls.We ' ll also go over semantically naming your compose functions for extra readability.Nested Style:Import {doublethenumber, evenonly} from ". /utils "; Const Map= XF = Reducer = { return(accumulation, value) = { returnReducer (accumulation, XF (value)); };}; Const filter= predicate = Reducer = { retur
View system permissions owned by the current user
Copy Code code as follows:
SELECT * from User_sys_privs;
System permissions system administrator granted-----SYS user
Copy Code code as follows:
Create user Lisi identified by 123456//creating users
Grant create session to Lisi//grant permission to have sessions
Grant CREATE TABLE to Lisi//grant permission to create table
Grant Create unlimited tablespace to Lisi//grant no space-restricted permissions
ceate [Shared][public] Database LinkDblink_name[Connect to {current_user| User identified by Password [authenticated by the User identified by password}| Authenticated by the User identified by Password][using ' connect_string '];Specific parameters, need db_domain. And you need to have a user account on the remote database.Step one, in the SAM database Tnsnames.ora exist tnsname, such assam=(DESCRIPTION =(Address_list =(ADDRESS = (PROTOCOL = TCP) (HO
DB2 Get dbm Cfg|grep SVCENAME
20. Attach to test node
DB2 Attach to Node_name
21. View Local nodes
DB2 List Node Direcotry
22. Node Reverse Cataloging
DB2 uncatalog Node Node_name
23. Database Cataloging
DB2 Catalog DB db_name as Db_alias at node Node_name
24. Viewing the catalogue of databases
DB2 List DB Directory
25. Connecting to the database
DB2 Connect to Db_alias user user_name using User_password
26. Database Reverse Cataloging
DB2 Uncatalog DB Db_alias
27. Export Data
The main introduction of the VISUALSVN Server installation, this article mainly introduces the use of VISUALSVN server.First open the VisualSVN Server Manager:You can see some information about the repository on the right side of the window, such as status, logs, user authentication, repository, etc. to build the repository, you need to right-click the repositores in the left window:In the popup context menu, choose Create New Repository or create new->repository to proceed to the next step:Clic
In general, the serial number is generated according to the defined rules. The following describes how to generate a serial number:
1. Set the serial number in the system
Use T-code snro to create a serial number to identify an object,
Enter the object zlc_001 and click Create.
Enter short text, long text, number length domain to writeProgramIt should be created separately. Here we will use the domain matnr of the item number for testing. Other parameters can use the default value,
the array frame because the video Analysis Module Videocapture component has been able to obtain the resolution and bit depth information of the USB camera. While the Cvtcolor method automatically allocates memory for the edges array, the data information for the edges array is the same as the input array, and Cv_bgr2gray determines the color space type of the output image. In the above loop, edges's memory is only allocated once, and if the resolution of the input image changes, the memory is
Original
Log key syntax in the MySQL stored procedure:
DELIMITER//Declaration statement Terminator, for distinction;Ceate PROCEDURE demo_in_parameter (in p_in int) declares a stored procedureBEGIN .... End stored procedure opening and closing symbolsSET @p_in = 1 variable AssignmentDECLARE l_int int unsigned default 4000000; Variable definition
What is a MySQL storage routine?A storage routine is a set of SQL statements stored in a database server tha
index values, 0 for uniqueness, 1 for non-unique
Key_name
The name of the index
Seq_in_index
The serial number in the index starts from 1
column_name
Column Name
Experiment 1: Create an indexed method create a normal index command format ceate index
Prepared a database (student information) inside has created inside (class student information Form)
Mysql> Show d
the database test DB2 Backup DB Test 38. Restore the database test DB2 Restore DB Test 399\. Listing information for a container DB2 list tablespace containers for tbs_id Show Detail 40. Create a table: DB2 ceate table tb1 (ID integer not null,name char (10)) 41. List all Tables DB2 List Tables 42. Insert Data: DB2 INSERT INTO TB1 values (1, ' Sam '); DB2 INSERT INTO TB2 values (2, ' Smitty '); . Establish database DB2_GCB CREATE DATABASE DB2_GCB on
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.