EVA
Dec. 24, 2023, 9:39 p.m.

PostgreSQLDDL SQL Commands Cheat Sheet

SQL, Cheat Sheet

1. CREATE TABLE

  • Purpose : Creates a new table in the database.
  • Syntax :
    1. CREATE TABLE table_name (
    2. column1 datatype,
    3. column2 datatype,
    4. column3 datatype,
    5. ...
    6. );
  • Example :
    1. CREATE TABLE Employees (
    2. EmployeeID int,
    3. FirstName varchar(255),
    4. LastName varchar(255),
    5. BirthDate date
Read
Ruslan Polupan
Nov. 24, 2021, 2:39 p.m.

QtInstalling the QIBASE (Firebird) Qt 6.2.1 driver on openSUSE Tumbleweed

Qt 6, IBASE, FireBird, SQL

Another reinstallation. I decided to install Qt 6 already.


The firebird components are installed as follows

Add to .bashrc

  1. # custom PATH Qt 6
  2. export PATH="$PATH:~/Qt/6.2.1/gcc_64/bin"

check if cmake is installed

and then as in the documentation https://doc-snapshots.qt.io/qt6-dev/sql-driver.html , only …

Read
Evgenii Legotckoi
Aug. 25, 2016, 9:04 p.m.

QtQt/C++ - Lesson 053. Building IBASE SQL driver Qt 5.7 on openSUSE Leap 42.1

FireBird, SQL, Leap, Qt, IBASE, openSUSE

Installing Qt 5.7 on openSUSE Leap 42.1

Download the latest version of Qt in Linux:

  1. wget http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run

Making the file executable

  1. chmod +x qt-unified-linux-x64-online.run

Install gcc, make, and other necessary libraries:

  1. sudo zypper install --type pattern devel_basis

Next, install the …

Read
Evgenii Legotckoi
Nov. 25, 2015, 7:17 p.m.

QtQt/C++ - Lesson 029. Picture in database in Qt – Saving and Loading

SQL, изображение, QPixmap, база данных, Qt, BLOB, SQLite

Images in the database can be stored in BLOB format ( Binary Large Object ), that is an array of binary data format. BLOB format is also suitable for storing audio and video data in databases.

Consider the saving and …

Read
Evgenii Legotckoi
Nov. 20, 2015, 9:23 p.m.

QtQt/C++ - Lesson 040. Types of data in different Databases in Qt

Qt, SQL, INTEGER, типы данных, DECIMAL, MS SQL

In the process of application development for Qt, which will have to work with databases, you must take into account the nuance that Qt driver target Databases may not support all types of data that you can lay in your …

Read
Evgenii Legotckoi
Nov. 5, 2015, 2:26 p.m.

QMLQML - Lesson 011. Data transmission from QML QSqlQueryModel in the TableView

QSqlQueryModel, Qt, SQL, TableView, DataBase, QML

To represent database tables in the development TableView using QML You can use a class inherited from QSqlQueryModel . To do this, in the inherited class to define a method that would establish the respective roles of the table columns …

Read
  • Last comments
  • AK
    April 1, 2025, 11:41 a.m.
    Добрый день. В данный момент работаю над проектом, где необходимо выводить звук из программы в определенное аудиоустройство (колонки, наушники, виртуальный кабель и т.д). Пишу на Qt5.12.12 поско…
  • Evgenii Legotckoi
    March 9, 2025, 9:02 p.m.
    К сожалению, я этого подсказать не могу, поскольку у меня нет необходимости в обходе блокировок и т.д. Поэтому я и не задавался решением этой проблемы. Ну выглядит так, что вам действитель…
  • VP
    March 9, 2025, 4:14 p.m.
    Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
  • ИМ
    Nov. 22, 2024, 9:51 p.m.
    Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
  • Evgenii Legotckoi
    Oct. 31, 2024, 11:37 p.m.
    Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup