db.where("countrycode = ?", "?").Find(&countries)
// Laravel などのEloquent
App\Countries::where('countrycode', ?);
create table fruit2(id serial,name bytea); --bytea型はバイナリ型 | |
/* データを fruit から fruit2 にコピーして、表示してみます。*/ | |
select * from fruit2; | |
id | name | |
----+---------------- | |
1 | \x6170706c65 | |
2 | \x6f7261676e65 | |
3 | \x7065616368 |
grant [権限名] | |
on [スキーマ名].[テーブル名] | |
to [ユーザ名] |
db.where("countrycode = ?", "?").Find(&countries)
// Laravel などのEloquent
App\Countries::where('countrycode', ?);
mysql: | |
image: mysql:5.7 | |
environment: | |
MYSQL_ROOT_PASSWORD: P@ssw0rd | |
wordpress: | |
image: wordpress | |
links: | |
- mysql:mysql | |
ports: | |
- "8888:80" |
package main | |
import ( | |
"fmt" | |
"io" | |
"net/http" | |
) | |
func main() { | |
//GETでアクセスし、データを取得する |
FROM centos | |
MAINTAINER yourname | |
RUN yum -y install httpd | |
RUN yum clean all | |
RUN sed -i -e \ | |
"s/#ServerName www\.example\.com:80/ServerName www.example.com:80/" \ | |
/etc/httpd/conf/httpd.conf |
$gccf-4-3-ArraySample.c | |
$./a.out | |
配列0番目のデータは75 | |
配列1番目のデータは82 | |
配列2番目のデータは66 | |
$gccf-4-3-ArraySample2.c | |
$./a.out | |
合計は223です。 | |
$gccf-4-3-ArraySample3.c | |
$./a.out |
H = InputBox("あなたの身長 (m) を入力してください。") 'H (Height) という変数を入力できるボックスを表示 | |
W = InputBox("あなたの体重 (kg) を入力してください。") 'W (Weight) という変数を入力できるボックスを表示 | |
BMI = W / H / H 'BMIの値を求める演算 体重 ÷ 身長 ÷ 身長 を書く | |
MsgBox "あなたお肥満指数は、" & BMI & "です。" 'BMIの演算結果をメッセージに出力 |
#include <stdio.h> | |
int data1 = 123; | |
int data2 = 456; | |
int ans; | |
int main() { | |
ans = data1 + data2; | |
return 0; | |
} |
interface fastethernet 0
ip address 192.168.10.1 255.255.255.0
no shutdown // no をつけるとコマンドを無効化する
exit