⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 1.3 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 5 of about 5 for Person (0.002 sec.)
Prepared Statements – DuckDB 11711
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... owing, we introduce the three different syntaxes and illustrate them with examples using the following table. CREATE TABLE person ( name VARCHAR , age BIGINT ); INSERT INTO person VALUES ( 'Alice' , 37 ), ( 'Ana' , 35 ), ( 'Bob' , 41 ), ( 'Bea' , 25 ); ... sition of the parameters in the query corresponds to their position in the execution statement. For example: PREPARE query_person AS SELECT * FROM person WHERE starts_with ( name , ? ) AND age >= ? ; Using the CLI client, the statement is executed as f ... ollows. EXECUTE query_person ( 'B' , 40 ); Positional Parameters: $1 Prepared statements can use positional parameters, where parameters are denoted wi ...
https://man.mtool.work/duckdb/1.3/sql/query_syntax/prepared_statements.html
Rust Client – DuckDB 10001
This page is for DuckDB 1.3, which is outdated. Switch to the current documentation . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Ove ... the execute() method of connections, or we can also prepare the statement and then query on that. #[derive(Debug)] struct Person { id : i32 , name : String , data : Option < Vec < u8 >> , } conn .execute ( "INSERT INTO person (name, data) VALUES (?, ? ... )" , params! [ me .name , me .data ], ) ? ; let mut stmt = conn .prepare ( "SELECT id, name, data FROM person" ) ? ; let person_iter = stmt .query_map ([], | row | { Ok ( Person { id : row .get ( 0 ) ? , name : row .get ( 1 ) ? , da ... ta : row .get ( 2 ) ? , }) }) ? ; for person in person_iter { println! ( "Found person {:?}" , person .unwrap ()); } Appender The Rust client supports the DuckDB Appen ...
https://man.mtool.work/duckdb/1.3/clients/rust.html
Enum Data Type – DuckDB 10001
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... standard built-in type is used. For example, we can create a table with a column that references the enum. Creates a table person , with attributes name (string type) and current_mood (mood type): CREATE TABLE person ( name TEXT , current_mood mood ); ... Inserts tuples in the person table: INSERT INTO person VALUES ( 'Pedro' , 'happy' ), ( 'Mark' , NULL ), ( 'Pagliacci' , 'sad' ), ( 'Mr. Mackey' , 'ok' ... ); The following query will fail since the mood type does not have quackity-quack value. INSERT INTO person VALUES ( 'Hannes' , 'quackity-quack' ); The string sad is cast to the type mood , returning a numerical reference value. T ...
https://man.mtool.work/duckdb/1.3/sql/data_types/enum.html
Transaction Management – DuckDB 7519
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... LBACK and ABORT statements will fail. Example We illustrate the use of transactions through a simple example. CREATE TABLE person ( name VARCHAR , age BIGINT ); BEGIN TRANSACTION ; INSERT INTO person VALUES ( 'Ada' , 52 ); COMMIT ; BEGIN TRANSACTION ; ... DELETE FROM person WHERE name = 'Ada' ; INSERT INTO person VALUES ( 'Bruce' , 39 ); ROLLBACK ; SELECT * FROM person ; The first transaction ( ... inserting “Bruce”) was aborted. Therefore, the resulting table will only contain <'Ada', 52> . 関連キーワード transaction person Transaction transactions DuckDB changes made also abort Statements database visible committed aborted statements commit pe ...
https://man.mtool.work/duckdb/1.3/sql/statements/transactions.html
Subqueries – DuckDB 6655
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... EXISTS operator is generally the most useful as a correlated subquery to express antijoin operations. For example, to find Person nodes without an interest: CREATE TABLE Person ( id BIGINT , name VARCHAR ); CREATE TABLE interest ( PersonId BIGINT , top ... ic VARCHAR ); INSERT INTO Person VALUES ( 1 , 'Jane' ), ( 2 , 'Joe' ); INSERT INTO interest VALUES ( 2 , 'Music' ); SELECT * FROM Person WHERE NOT EXISTS ( ... FROM interest WHERE interest.PersonId = Person.id ); id name 1 Jane DuckDB automatically detects when a NOT EXISTS query expresses an antijoin operation. Ther ...
https://man.mtool.work/duckdb/1.3/sql/expressions/subqueries.html
PREV 1 NEXT
DuckDB 1.3 Documentation / man.mtool.work